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.
1,000+ codders enrolled
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 sectionStartExpandCollapseTrain 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?
What is the difference between supervised and unsupervised learning?
What are classification and regression?
Which supervised learning algorithms does the course cover?
StandardScaler, OneHotEncoder, SimpleImputer, pipelines, cross_val_score and GridSearchCV.