Machine Learning in Python @ UTA. Dr. Jawad. Spring 2025
Labs section of the course.
To run an initial Python development environment there are several methods via Jupyter notebooks, VS Code, PyCharm, Spyder, the Anaconda distribution, or on the command line in Bash. For beginner-friendly, Jupyter Notebooks or Anaconda is recommended for a seamless development and workflow environment. See Resources and Documentation section.
To get started see Github documentation to install this repository into your local machine: Cloning a Repository
If not using Anaconda or other workflow development environments, clone the repository and install Python directly in Bash:
# Install Python
sudo apt install python3
# Install pip package manager
sudo apt install python3-pip
Run a Python Interactive Shell:
python3
You can run Python scripts directly in Bash:
# Create a Python script
nano hello.py
# Run Python script
python3 hello.py
For package management and virtual environments:
# Create a virtual environment
python3 -m venv ml-env
# Activate virtual environment
source ml-env/bin/activate
# Install Python libraries
pip install numpy pandas scikit-learn matplotlib seaborn jupyter
Anaconda is a distribution stack for Python and R, designed for data science and machine learning. It includes Spyder, Jupyter, and pre-installed libraries.
- Download and install Anaconda from Anaconda Downloads
- Launch the Anaconda Navigator GUI for managing environments and tools.
# Create interactive environment
conda create -n ml-env python=3.9
# Activate the environment
conda activate ml-env
# Install required packages
conda install numpy pandas scikit-learn matplotlib seaborn jupyter
- Open Spyder: Launch from the Anaconda Navigator or run Spyder in the terminal.
- Run Jupyter Notebook: Launch from Navigator or run the following command in Bash:
jupyter notebook
- Anaconda: Python and R distribution for data science.
- Spyder: Scientific Python IDE.
- Visual Studio Code: Interactive Development Environment.
- PyCharm: IDE for Python development.
- Jupyter Notebooks: Interactive notebooks for Python.
- Python: The official Python website.
- NumPy: Library for numerical computing.
- Pandas: Library for data manipulation and analysis.
- Scikit-Learn: Library for machine learning.
- Matplotlib: Library for data visualization.
- Seaborn: Statistical data visualization library