Machine Learning Fundamentals
Mission. Classical ML done with the rigor of someone who understands both the math and the engineering.
Scope
- Supervised and unsupervised learning
- Model evaluation and cross-validation
- Data leakage and how it fools you
- Regularization, ensembles, feature selection
- Imbalanced data
- scikit-learn as the workbench
Learning objectives
- Frame a problem as regression, classification, or clustering and justify the choice
- Build an evaluation scheme that won't leak or fool itself
- Diagnose a struggling model (bias/variance, leakage, drift) systematically
Lessons
This track is scaffolded and waiting for content. See the curriculum dashboard for the roadmap and progress across all tracks.
In review — 1 draft awaiting publication
Planned lessons (26)
Wave 1 — first vertical slice (production-ready) — 26 lessons
foundations
- The Supervised Workflow Data to deployment: the shape of a supervised learning project.
- Train, Validation, Test The split discipline that keeps your model honest about the future.
- Cross-Validation K-fold, stratification, and group leakage.
- Data Leakage The silent killer: how information from the future inflates your scores.
models
- Linear Regression as a Model Least squares as a model, not just a formula.
- Logistic Regression as a Classifier Probabilities, decision boundaries, and calibration.
- k-Nearest Neighbors The simplest classifier, and what its failures teach.
- Decision Trees Splits, impurity, and the overfitting built into trees.
- Random Forests Bagging and feature randomness: variance reduction made practical.
- Gradient Boosting Sequential error correction, and why it wins on tabular data.
- Support Vector Machines Margins, kernels, and the geometry of the separator.
unsupervised
- k-Means Clustering Assumptions, failure modes, and choosing k honestly.
- DBSCAN Density-based clusters without choosing k.
- Principal Component Analysis Compression, decorrelation, and interpretation of components.
evaluation
- Regression Metrics MSE, MAE, R-squared: what each metric forgives and punishes.
- Classification Metrics Precision, recall, F1: choosing the metric that matches the cost.
- ROC, Thresholds, Calibration Curves, threshold choice, and whether to trust the probabilities.
- Regularization Ridge, lasso, and the bias-variance dial.
- Hyperparameter Tuning Grid, random, and Bayesian search without test-set leakage.
- Ensembles and Stacking Blending models: when diversity beats strength.
- Imbalanced Classes When 99 percent accuracy means nothing: resampling, weighting, thresholds.
practice
- Feature Selection Choosing fewer, better features without p-hacking your way there.
- Model Interpretability Permutation importance and SHAP: interrogating what the model learned.
- scikit-learn Pipelines Pipelines and ColumnTransformer: preprocessing without leakage.
- Model Persistence and Serving Serializing models and serving predictions behind a function.
project
- Case Study: End-to-End Classification A real dataset, honest evaluation, and a served prediction.