Setting Up for Machine Learning

Setting Up for Machine Learning: Setup on Windows: Python, VS Code and Git, Setup on a Mac: Python, VS Code and Git, Virtual Environments and pip, Installing…

Updated

  1. Setup on Windows: Python, VS Code and Git (Novice): Install Python with the Python Install Manager, VS Code with its Python extension, and Git on Windows with winget, check them with py --version and python --version in VS Code's terminal, tell Git your name and email, and make a python-course folder.
  2. Setup on a Mac: Python, VS Code and Git (Novice): Install Homebrew, then Python, VS Code with its Python extension, Git and Git Credential Manager on a Mac, check Python with python3 --version in VS Code's terminal, see why the command is python3 on a Mac, tell Git your name and email, and make a python-course folder.
  3. Virtual Environments and pip (Apprentice): A virtual environment gives each Python project its own private set of packages, pip installs packages into it from PyPI, and a requirements.txt with exact versions lets any computer install the same set with one command.
  4. Installing the Machine Learning Toolkit (Apprentice): Machine learning in Python needs five packages that don't come with Python, NumPy, pandas, scikit-learn, matplotlib and ipykernel, installed into a project's virtual environment from a requirements.txt that pins each exact version, checked with sklearn.show_versions(), and used from a notebook to explore and a .py file for the code pytest checks.