Machine Learning Fundamentals
Frame a prediction problem, train and compare baseline supervised models in scikit-learn, and diagnose and correct under- and overfitting.
4 objectives 6 steps about 125 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Frame a business question as a learning task, choosing the paradigm (supervised, unsupervised, semi- or self-supervised, reinforcement) and naming the target, features, unit of prediction and how predictions will be acted on.
- Train and compare a dummy baseline, linear regression, logistic regression and k-nearest neighbours with the scikit-learn estimator API on a train/validation/test split.
- Diagnose underfitting and overfitting from training versus validation error and learning curves, and explain the bias-variance trade-off.
- Apply L1 (Lasso), L2 (Ridge) and Elastic Net regularization to a linear model with polynomial features, select its strength on validation data, and explain its effect on model coefficients.
Lesson plan
6 steps, about 125 min · 5 of 5 lessons available so far
- From Business Question to Learning Task Concept · 20 min
- The Estimator Contract: fit, predict, score Concept · 15 min
- Lab: Baselines First with Dummy, Linear and Neighbour Models Lab · 30 min
- Underfitting, Overfitting and Learning Curves Concept · 20 min
- Worked Example: Taming a Polynomial Fit with Ridge, Lasso and Elastic Net Worked example · 25 min
- Check: Framing, Baselines and Generalization Knowledge check · 8 questions
Practise it
For a public tabular dataset, write a one-page problem framing, then train a dummy baseline, a regularized linear or logistic model and a k-nearest-neighbours model; plot learning curves and report validation scores with a short argument for which model generalizes best.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Neural NetworkIntermediate · 6–12 h
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.