AI / ML · Course
Intermediate Machine Learning
Take your models further. Handle missing values and non-numeric data, bundle your steps into clean pipelines, test models honestly with cross-validation, boost accuracy with gradient boosting, and avoid the subtle trap of data leakage. Hands-on in your browser with real scikit-learn. Builds on Intro to Machine Learning and Pandas.
What you’ll learn
- Handle missing values by dropping or imputing them
- Turn categorical (non-numeric) data into something a model can use
- Bundle preprocessing and modelling into a single clean pipeline
- Test models more reliably with cross-validation
- Boost accuracy with gradient boosting (and understand XGBoost)
- Spot and prevent data leakage that secretly ruins a model
All lessons free — start below
Getting Started · Lesson 1 of 7
Introduction
Welcome back
In Intro to Machine Learning you learned the core loop: explore, build, validate, improve. You trained decision trees and a random forest, and measured them honestly with a validation set.
Real data is messier than the tidy tables in that course. It has gaps, it has words instead of numbers, and it hides traps that can quietly ruin a model. This course gives you the tools professionals use to handle all of that:
- Missing values and how to fill them
- Categorical (non-numeric) data and how to encode it
- Pipelines to keep your steps clean and repeatable
- Cross-validation for a more trustworthy score
- Gradient boosting for stronger accuracy
- Data leakage, the subtle bug that fools you into thinking a model is great
Before you start
This is an intermediate course. It assumes you have already built a simple model and are comfortable with a few ideas from Intro to Machine Learning:
- training a model, then validating it on data it has not seen
- mean absolute error (MAE) as a measure of quality
- underfitting and overfitting
- decision trees and random forests
If any of those feel shaky, do the RiseAfrica Intro to Machine Learning course first (and Pandas helps too). They cover everything you need, then come back here.
The data we will use
We will use the same student dataset as before, now with two new wrinkles: a non-numeric region column, and some missing values. Run this to see them:
See the NaN values and the text region column? A model cannot use either as-is. Fixing that is where we start.
Practice
Run the cell and read the missing-values count. Which column has gaps, and how many? Note it down, you will fix it in the next lesson.