Jupyter Notebooks demonstrating fundamental machine learning concepts.
- Python 3.11 is recommended. Tensorflow supports Python 3.9-3.12, so virtual environments using Python 3.13+ will need to be downgrade.
- It's recommended to use a virtual enviornment to manage dependencies.
python3.11 -m ml-concepts-venv
- If using a virtual environment, activate virtual environment.
- macOS/Linux:
source ml-concepts-venv/bin/activate
- Windows:
ml-concepts-venv\Scripts\activate
- macOS/Linux:
- Install Jupyter Notebook.
pip install notebook
- Start Jupyter Notebook.
jupyter notebook
Alternatively, the notebooks can be viewed online using nbviewer.
The original Jupyter Notebooks are from https://cse.msu.edu/~ptan/dmbook/software/. However, the original notebooks are no longer maintained and were updated to use supported versions of Python and packages.
These are the 7 Jupyter Notebooks used:
- Data Exploration
- Data Preprocessing
- Regression
- Classification
- Text Processing
- Cluster Analysis
- Anomaly Detection
The first code block of each notebook installs the required packages for that notebook. Restart the kernel after installing the packages for the new packages to be recognized.
Otherwise, packages required for all packages can be installed all at once using requirements.txt.
pip install -r requirements.txt