Level 1 — Classical Machine Learning You Can Trust
About 7 h · + optional Python ~2.8 h
Before L1.18: If scikit-learn's nested Pipeline and ColumnTransformer are new, use optional P4 — Reading scikit-learn Code. It maps the entire L1.18 starter by line ranges.
Level 0 taught you to ask what information goes in, what answer a system is trying to produce, what changed, and what evidence supports the result.
Level 1 turns those habits into a practical classical machine-learning workflow. You will begin with supervised prediction, expand from linear models to trees and ensembles, briefly step into unsupervised learning, and finish by building a leak-safe workflow for realistic tabular data.
New to Python? Start with optional P1 — Reading Python for ML Labs and P2 — NumPy Arrays and Shapes before L1.1. Each has a skip check and browser practice. They do not count toward lesson progress.
The two learning paradigms you will meet
Most of the level is supervised learning:
supervised: X + known y -> learn prediction
Later you will also use unsupervised learning:
unsupervised: X only -> look for useful structure
The second form does not mean the algorithm discovers automatic truth. It means no target label y is supplied to the learning procedure.
What you will be able to do
By the end of the level, you should be able to:
- turn a table into a fair supervised-learning experiment with a clean train/evaluation boundary;
- fit and reason about linear and logistic models, including loss, optimization, scaling, and classification metrics;
- explain how decision trees, Random Forests, and boosting make different tradeoffs between flexibility and stability;
- use K-means and PCA to explore unlabeled data without treating discovered structure as automatic truth;
- build a leak-safe pipeline for numeric, categorical, missing, and imbalanced tabular data;
- compare model families under the same evidence rules and recognize where other classical-ML families fit in the map.
The learning path
Part 1 — Build a fair supervised foundation
L1.1–L1.5 establish objectives, tables, splitting, linear regression, and loss.
L1.6 — Gradient Descent and Learning Rate combines direction and step size in one optimization story.
L1.7–L1.8 cover feature scaling and multiple features.
After L1.8 — Multiple Features, complete the mini checkpoint before moving to classification.
Part 2 — Classification and trustworthy evaluation
L1.9 — Classification introduces categorical prediction.
L1.10 — Logistic Regression and Decision Boundaries connects continuous scores, thresholds, and the geometry of class changes.
L1.11–L1.13 cover metrics beyond accuracy, cross-validation, and data leakage.
Part 3 — Trees and ensembles
L1.14 — Decision Trees, Bias, Variance, and Overfitting turns trees into a model family you can reason about rather than only an overfitting example.
L1.15 — Ensembles and Random Forests explains bootstrap samples, random feature subsets, diversity, and aggregation.
L1.16 — Boosting: Learning From Previous Errors contrasts Random Forest with sequential correction.
Part 4 — Structure without labels and real-world tables
L1.17 — Unsupervised Learning: K-Means and PCA introduces learning from X without a target y.
L1.18 — Real-World Tabular ML: Pipelines and Model Review combines missing values, categorical encoding, scaling, imbalance-aware evaluation, reproducible pipelines, and model-family comparison.
How to use the Labs
Each numbered lesson has a deterministic Lab. Treat it as an experiment, not a demo you merely run.
For each change: predict what should happen, change one important factor, inspect the named outputs, explain why the result supports or challenges the prediction, and reset before trying a different factor.
The rule that protects almost every experiment
When a score changes, ask what changed, what stayed fixed, whether evaluation information influenced fitting, which error types changed, whether the metric fits the decision, whether another person could repeat the comparison, and whether you are interpreting a pattern as more meaningful than the evidence supports.
That habit connects linear models, trees, ensembles, clustering, dimensionality reduction, and tabular pipelines.
Level Project
After L1.18 — Real-World Tabular ML: Pipelines and Model Review, complete Trustworthy ML: Compare Models Without Cheating.
You will compare a baseline, logistic regression, decision tree, Random Forest, and boosting candidate under the same clean information boundary. Your job is not to crown the model with the largest single number. Your job is to explain which evidence supports a choice, what tradeoffs remain, and why the comparison is fair.
Completion is stored locally on this device.