This repository contains the full materials for the MiCM Workshop: Introduction to Supervised Machine Learning, designed to teach fundamental supervised learning concepts through hands-on, medically themed exercises (simulated) using tabular data.
Audience: Researchers, trainees, students interested in supervised learning. Duration: ~4 hours + breaks. Focus: Regression, classification, regularization, nonlinearity, and MLPs for medical tabular data. Tools: Python, pandas, scikit-learn, and matplotlib.
The workshop consists of:
- Guided exercises implemented in Jupyter notebooks.
- Synthetic medical datasets that simulate realistic relationships.
- A final mini-hackathon applying all learned concepts.
You don't have to install everything for today's workshop.
| Notebook | Colab Link |
|---|---|
| 00 Intro | |
| 01 Regression | |
| 02 Regularization | |
| 03 Nonlinearity | |
| 04 MLP | |
| 05 Hyperparameters | |
| 06 Hackathon |
QLS-MiCM_Introduction_to_supervised_machine_learning-main/
│
├── Outline/
│ └── workshop_outline.md
│
├── Slides/
│ ├── 00_intro.md
│ ├── 01_linear_regression.md
│ ├── 02_regularization.md
│ ├── 03_nonlinearity.md
│ ├── 04_mlp.md
│ ├── 05_training_eval.md
│ └── 06_hackathon.md
│
└── Exercises/
├── data/
├── scripts/
│ └── generate_datasets.py
├── workshop_utils.py
└── solutions/
├── 00_intro_and_data_exploration.ipynb
├── 01_linear_regression_medical.ipynb
├── 02_regularization_high_dim_medical.ipynb
├── 03_feature_engineering_and_nonlinearity.ipynb
├── 04_mlp_for_tabular_medical.ipynb
├── 05_training_mechanics_and_eval.ipynb
└── 06_hackathon_template.ipynb
└── workbooks/
├── 00_intro_and_data_exploration.ipynb
├── 01_linear_regression_medical.ipynb
├── 02_regularization_high_dim_medical.ipynb
├── 03_feature_engineering_and_nonlinearity.ipynb
├── 04_mlp_for_tabular_medical.ipynb
├── 05_training_mechanics_and_eval.ipynb
└── 06_hackathon_template.ipynb
Will make this week.
git clone https://github.com/<your-org>/QLS-MiCM_Introduction_to_supervised_machine_learning.git
cd QLS-MiCM_Introduction_to_supervised_machine_learning-mainUsing conda:
conda create -n micm-ml python=3.10 -y
conda activate micm-mlUsing venv:
python -m venv micm-ml
source micm-ml/bin/activate # Windows: micm-ml\Scripts\activatepip install -r requirements.txtcd Exercises/scripts
python generate_datasets.pyThis creates five datasets inside Exercises/data/.
jupyter labor
jupyter notebookThen open the notebooks in Exercises/notebooks/.
pip install npm
bash build_slides.shSee requirements.txt for exact versions.
Core dependencies include:
- numpy
- pandas
- scikit-learn
- matplotlib
- jupyter
- statsmodels
This material is for educational purposes within the McGill Initiative in Computational Medicine (MiCM), released under MIT license.
Portions of this workshop were drafted with assistance from Generative AI tools (ChatGPT). All content has been reviewed, edited, and validated by the instructor to ensure accuracy and clarity.
Workshop created as part of the McGill Initiative in Computational Medicine