Academy / Data & Machine Learning
Path 2 · Course 3 · For analysts and aspiring practitionersMachine Learning Fundamentals
Build, evaluate and explain your first machine learning models with scikit-learn, in code cells you can run and edit on the page: framing problems, regression, classification and thresholds, overfitting and ensembles, cross-validation, clustering and PCA, and interpreting and deploying models responsibly.
0 of 6 modules complete
Modules
- 145 min
The machine learning workflow
Framing problems, classification vs regression, the end-to-end workflow, scikit-learn's fit/predict pattern, the practice dataset, a first model against a baseline, exploring the target, and where people add value when AI writes the code.
- 245 min
Regression: predicting numbers
Linear regression, training and evaluating against a baseline, MAE, RMSE and R², interpreting coefficients, inspecting errors and residuals by group, and comparing with a tree-based model.
- 350 min
Classification and evaluation
Logistic regression and probabilities, decision trees, confusion matrices, precision, recall, F1 and ROC-AUC, choosing thresholds, imbalanced classes and class weights, the precision–recall trade-off, and calibration.
- 450 min
Better models: overfitting, ensembles and validation
Diagnosing overfitting, random forests and gradient boosting, k-fold cross-validation, hyperparameter tuning with grid search, leakage-safe pipelines, learning curves, and tabular foundation models.
- 545 min
Unsupervised learning
Segmentation with k-means, scaling, choosing the number of clusters, the elbow chart, PCA for visualisation, anomaly detection with isolation forests, and turning segments into actions.
- 645 min
Interpreting and deploying models
Permutation importance, error analysis by group, saving models safely, deployment and monitoring, model cards, choosing between classic ML and LLMs, a worked drift example, and a review checklist for ML code written by people or AI.
Frequently asked questions
What is the difference between classification and regression?
Regression predicts a number, such as a price; classification predicts a category, such as whether a customer will leave. The choice shapes the models and metrics you use. Module 1: The machine learning workflow →
What is overfitting?
Overfitting is when a model learns its training data too closely, including noise, and performs poorly on new data. Cross-validation, simpler models and more data help prevent it. Module 4: Better models: overfitting, ensembles and validation →
Precision vs recall: what's the difference?
Precision is the share of positive predictions that are correct; recall is the share of actual positives the model finds. Choosing a decision threshold trades one against the other. Module 3: Classification and evaluation →
Which Python library is used for machine learning?
scikit-learn is the standard Python library for classic machine learning, with a consistent fit/predict pattern for models, pipelines and evaluation. Module 1: The machine learning workflow →
When should I use classic machine learning instead of an LLM?
For structured, tabular prediction tasks such as forecasting, scoring or churn, classic machine learning is usually cheaper, faster, more accurate and easier to explain than an LLM. Module 6: Interpreting and deploying models →