Build, evaluate, and explain introductory machine-learning models.
Classical machine learning
Status: Classical ML track in progress. Complete the data and mathematics track first.
Prerequisites
- Python variables, conditions, loops, and functions
- pandas tables and basic visualization
- Mean, median, spread, and sampling
- Vectors and dot products
What students will produce
By the end of this stage, students should be able to:
- define a prediction question with features and a target;
- create a simple baseline before choosing a complex model;
- split data without leaking test information;
- select a metric that matches the real question;
- inspect errors instead of reporting only one score; and
- document limitations and possible misuse.
Ordered subtopics
- Features, labels, training, and inference
- Baselines and train/test splits
- Linear regression
- Classification and logistic regression
- Confusion matrices and evaluation metrics
- Overfitting, underfitting, and cross-validation
- Decision trees and ensembles
- Nearest neighbors and support-vector machines
- Clustering and dimensionality reduction
- Feature engineering and pipelines
- Error analysis and model cards
Planned project: compare several models on the same dataset and justify the final choice.
Best practices
- Define the prediction moment before selecting features.
- Keep training, validation, and test roles separate.
- Compare every model with a simple baseline.
- Report the metric, units, threshold, sample size, and error costs.
- Inspect examples of failure and document out-of-scope uses.
References
Completion evidence
Submit a notebook containing a dataset description, baseline, train/test split, at least two models, a metric table, an error analysis, and a short model card. A high score is not enough if the test setup is invalid or the result is not appropriate for the problem.