
Applied AI
Machine Learning
Machine learning the way it is used at work: split data properly, evaluate with the right metric and take the model to production.
- units
- 8
- lessons
- 23
- minutes
- 134
- exercises
- 138
The first unit is free, no credit card required. The other 7 unlock when you buy the course or go Pro. Single course: $12.99, one-time payment.
What's in the course.
From the fundamentals to production, with metrics you actually calculate.
8 units, 23 lessons, and about 134 minutes of practice, a few minutes at a time.
What machine learning is, what kind of problem it solves and how to split data the right way.
In this unit, you'll learn to
- Tell hand-written rules apart from models that learn
- Recognise regression, classification and clustering
- Split training, validation and test sets without leakage
Lessons
- What machine learning is, unlocked6 exercises · 5 min
- Splitting the data, unlocked6 exercises · 6 min
How to know whether the model really learned and which metric tells the right story.
In this unit, you'll learn to
- Recognise overfitting and underfitting
- Read a confusion matrix and calculate precision and recall
- Measure regression error with MAE and RMSE
Lessons
- Overfitting and validation, locked6 exercises · 6 min
- Metrics that matter, locked6 exercises · 6 min
- When metrics mislead, locked6 exercises · 6 min
The models that solve most everyday problems and the scikit-learn pattern for using them.
In this unit, you'll learn to
- Choose between linear regression, logistic regression and trees
- Understand random forest, gradient boosting and k-means
- Build a Pipeline with fit and predict
Lessons
- Regressions and trees, locked6 exercises · 6 min
- Clustering and scikit-learn, locked6 exercises · 6 min
- Regularize and stop in time, locked6 exercises · 6 min
Improve features, tune hyperparameters, track experiments and keep the model healthy and fair in production.
In this unit, you'll learn to
- Create features and tune hyperparameters with cross-validation
- Track experiments and versions with MLflow
- Monitor drift and check bias and explainability
Lessons
- Features and tuning, locked6 exercises · 6 min
- Responsible production, locked6 exercises · 6 min
- Tuning without fooling yourself, locked6 exercises · 6 min
Hidden leakage, groups and time in validation, and a pipeline that survives messy columns.
In this unit, you'll learn to
- Spot leakage in preprocessing, target, duplicates, and time
- Choose the split that mirrors how the model is used
- Handle columns and new categories inside the pipeline
Lessons
- Data leakage, in depth, locked6 exercises · 6 min
- Validate by group and time, locked6 exercises · 6 min
- Columns and categories, locked6 exercises · 6 min
The cost of each error, calibrated probabilities, and explanations that survive the follow-up question.
In this unit, you'll learn to
- Choose the threshold by what errors cost
- Read and fix a classifier's calibration
- Explain predictions and compare groups without claiming cause
Lessons
- Rare classes and error costs, locked6 exercises · 6 min
- Probabilities that hold up, locked6 exercises · 6 min
- Explain and compare groups, locked6 exercises · 6 min
Odd-shaped clusters, anomalies, time series, recommendations, and a launch with brakes.
In this unit, you'll learn to
- Use DBSCAN, PCA, and anomaly detection where they fit
- Forecast and recommend without peeking at the future
- Roll out gradually and react to each kind of alert
Lessons
- DBSCAN, PCA, and anomalies, locked6 exercises · 5 min
- Time series and recommendations, locked6 exercises · 5 min
- Launch and monitor, locked6 exercises · 5 min
Fresh Crate wants to lose fewer subscribers: from the board's question to a tested, monitored model.
In this unit, you'll learn to
- Turn the business goal into a label, window, and baseline
- Build the call list by expected value and capacity
- Prove the effect with an A/B test and retrain honestly
Lessons
- Fresh Crate: the design, locked6 exercises · 6 min
- Fresh Crate: model and list, locked6 exercises · 6 min
- Fresh Crate: test and retrain, locked6 exercises · 6 min
Try it for real.
Ready to train some models? Real exercises from this course, solved step by step, exactly as they appear in the app.
138 exercises across 6 types in this course
- Pick the best answer49
- Write Python26
- Match24
- Fill in the code16
- Tap the chart15
- Put it in order8
Write Python. Python 3 running in your browser, nothing to install. Write it, run it, see the output.
The customers are already shuffled. Use cutoff to put the first 80% in train and the rest in test. Print len(train) and then the test list.
customers = ["C01", "C02", "C03", "C04", "C05", "C06", "C07", "C08", "C09", "C10"] cutoff = int(len(customers) * 0.8) train = customers[:cutoff] test = customers[cutoff:] print(len(train)) print(test)
Correct. customers[:cutoff] takes from the start up to just before the cut, and customers[cutoff:] takes from the cut to the end. The two parts never overlap, which is what matters. In practice, shuffle first, as here, or split by date when time matters.
Put it in order. The steps of a process show up shuffled. You put them in the right sequence.
Put the steps in the right order.
- ·Split off the test set and put it aside
- ·Train candidate models on the training set
- ·Compare the candidates on the validation set
- ·Evaluate the chosen model once on the test set
Correct. Validation is for choosing between models and settings. The test set is kept for the end, to give an honest estimate. If you choose by looking at the test set, it becomes validation and loses its value.
Match. You link each situation to the right category, a few pairs at a time.
Is each task supervised or unsupervised?
- Predict the value of the next order based on past orders and their valuesSupervised
- Group customers by buying behaviour, with no groups defined beforehandUnsupervised
- Classify emails as spam using emails already flagged by usersSupervised
- Find products that are often in the cart togetherUnsupervised
- Estimate default risk using the history of who paid and who did notSupervised
Correct. In supervised learning, each historical example has the right answer (the label). In unsupervised learning there is no answer: the algorithm looks for structure in the data, such as groups or associations.
Practice exams for this course
This course prepares you for these exams. Try free questions before you practice in the app.


