Data and AILearning library

Machine learning

Learn statistical learning through baselines, honest evaluation, and reproducible experiments. Classical methods come before neural networks; framework APIs evolve and no benchmark score is treated as proof of suitability for every user.

Intermediate15 chapters11 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

15 chapters across 5 modules

Course chapters

Explore all 15 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Questions, data, and baselines3 chapters
  1. Prediction tasks and problem framing

    • Distinguish a target variable from features and an intervention decision

    Practice: Define a small tabular prediction task and identify how predictions would be used.

    Read the primary referenceLesson guide · Ready
  2. Data splits and leakage

    Design an evaluation that measures useful generalization rather than accidental memorization.

    • Explain why evaluation data must not influence fitted preprocessing or model choice

    Practice: Repair a split and scaling pipeline that leaks information from the test set.

    Read the primary referenceExpanded reading · Ready
  3. Baselines and descriptive checks

    • Establish a reference result before fitting a complex model

    Practice: Calculate a constant predictor and inspect missing values and class balance.

    Read the primary referenceLesson guide · Ready
02 · Classical supervised methods3 chapters
  1. Linear regression and loss

    • Connect predictions, residuals, and the objective being minimized

    Practice: Fit a small regression and inspect residuals against a baseline.

    Read the primary referenceLesson guide · Ready
  2. Classification and decision thresholds

    • Separate estimated scores from the threshold used for decisions

    Practice: Compare precision and recall across thresholds for a toy classifier.

    Read the primary referenceLesson guide · Ready
  3. Trees, regularization, and ensembles

    • Explain how model flexibility and constraints affect generalization

    Practice: Compare a shallow tree, a deep tree, and a regularized alternative.

    Read the primary referenceLesson guide · Ready
03 · Evaluation and inference limits3 chapters
  1. Cross-validation and model selection

    • Use validation to choose settings while preserving a final holdout

    Practice: Design a grouped or time-aware validation plan for correlated examples.

    Read the primary referenceLesson guide · Ready
  2. Metrics, imbalance, and calibration

    • Choose metrics from consequences of mistakes rather than accuracy alone

    Practice: Evaluate an imbalanced example with a confusion matrix and calibration check.

    Read the primary referenceLesson guide · Ready
  3. Uncertainty, bias, and subgroup analysis

    • State what a finite evaluation sample cannot establish

    Practice: Report subgroup counts, error rates, and uncertainty limitations without overclaiming.

    Read the primary referenceLesson guide · Ready
04 · Representations and neural networks3 chapters
  1. Clustering and dimensionality reduction

    • Distinguish descriptive structure from validated labels

    Practice: Explore a small dataset with clustering and test sensitivity to scaling.

    Read the primary referenceLesson guide · Ready
  2. Tensors, gradients, and training loops

    • Trace parameters, loss, gradients, and optimizer updates

    Practice: Train a tiny network locally and verify that evaluation disables training-specific behavior.

    Read the primary referenceLesson guide · Ready
  3. Overfitting and experimental control

    • Use seeds, saved settings, and learning curves to compare runs

    Practice: Record a reproducible experiment and explain remaining nondeterminism.

    Read the primary referenceLesson guide · Ready
05 · From experiment to maintained model3 chapters
  1. Packaging preprocessing and inference

    • Keep training-time transformations aligned with inference

    Practice: Save and reload a full preprocessing-and-model pipeline and compare outputs.

    Read the primary referenceLesson guide · Ready
  2. Drift, monitoring, and feedback

    • Separate input shifts from measured degradation in the target task

    Practice: Design a monitoring plan with delayed labels and a rollback criterion.

    Read the primary referenceLesson guide · Ready
  3. Build a documented baseline study

    • Present data provenance, evaluation design, results, and known limits

    Practice: Deliver a small reproducible study and a model card with an honest baseline comparison.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Machine learning practice

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.