Supervised Learning in Python
Train models that learn from labelled examples. Split, fit, predict and score with scikit-learn, see every model on a chart, and finish by shipping a penguin species classifier.
58 lessons58 challenges240 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Quizzes to test your knowledge
Free certificate of completion
Syllabus
This section is part of the Machine Learning Journey. The full syllabus has more sections: click any preview below to view it on the Journey page.
- Section 1Data and Plots60 lessons
- Section 2Statistics for ML64 lessons
Section 3
Supervised Learning
Start sectionStartTrain real models with scikit-learn: split, fit, predict and measure. k-NN, linear and logistic regression, trees, forests and boosting, honest evaluation with cross-validation, and pipelines, ending with an end-to-end penguin project.Your First Model
5 lessons520Nearest Neighbors
5 lessons520Linear Regression
5 lessons520Logistic Regression
5 lessons520Measuring Classifiers
6 lessons625Decision Trees
5 lessons520Overfitting
5 lessons520Cross-Validation
4 lessons415Ensembles
4 lessons415Pipelines
5 lessons520Project: Penguin Species
5 lessons525Final Challenges
4 lessons420- Section 4Unsupervised Learning51 lessons
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
Code Anywhere
Take your coding journey on the go! No setup, no downloads: just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.
You're Not Alone
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time. Reassigning the name simply points it to a new value.
Earn a Certificate
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn supervised learning with Coddy
- The whole scikit-learn workflow in four lines you will use in every project:
train_test_split,fit,predictandscore. Then each model you meet is one new line, not a new way of working. - See what a model decides. Decision boundaries colour the plane, residual plots show what a line misses, ROC curves show what a threshold trades away. Every lesson has a chart, and yours appears in the Plots tab as you run.
- The models that do most real work: k-nearest neighbors, linear and logistic regression, decision trees, random forests and gradient boosting, plus pipelines that scale, encode and fill gaps without leaking the test set.
- Honest scores. Confusion matrices, precision and recall, imbalanced classes, overfitting, validation sets and cross-validation, so you can tell a model that works from one that memorized its homework.
Frequently asked questions about supervised learning
What is supervised learning?
Supervised learning trains a model on examples that come with the right answer, called labels. Each row has features (a penguin's bill length, flipper length, island) and a label (its species). The model learns the link between them, then predicts the label for new rows. It is supervised because the labels play the teacher: the model is corrected against them while it learns.
What is the difference between supervised and unsupervised learning?
What are classification and regression?
They are the two kinds of supervised learning. Classification predicts a category, such as spam or not spam, or one of three wine types. Regression predicts a number, such as tomorrow's bike rentals or a patient's disease progression. Many models do both: there is a k-NN, a decision tree and a random forest for each, and the course uses both versions.
Which supervised learning algorithms does the course cover?
StandardScaler, OneHotEncoder, SimpleImputer, pipelines, cross_val_score and GridSearchCV.What should I know before starting?
How do I know if my model is any good?
You test it on rows it never saw during training and compare it with a simple baseline, like always guessing the most common class. Accuracy alone can lie when one class is rare, so the course also teaches the confusion matrix, precision, recall, F1 and ROC curves, and cross-validation to check the score was not luck.
How long does the supervised learning section take?
58 lessons, about 10 hours at your own pace: a few weeks at half an hour a day. Each lesson is one idea and one task, and the section ends with the penguin project and four final challenges.
Is it free?
Yes. The lessons, the charts, the AI hints and the certificate for the section are free. A free account works through a few lessons a day, and Pro removes the daily limit.