Py
Py
Run
What do you want to learn?
Lessons
⌄
Browse the curriculum
Find your level
Practice problems
Interview prep
Cheat sheets
Career paths
Explore by role
All lessons
Fundamentals
Web development
Data
Engineering
Data science
Machine learning
GenAI & RAG
Automation
DSA / interview
Tools
new
⌄
Online compiler
Playground
Revise
Terminal
SQL playground
Notebook
Build
⌄
Workspaces
Guided projects
My published sites
Blog
Pricing
AI
en
Sign in
Start free
→
Start free
→
loading…
Feedback
💬
Ask PyRun
Home
›
All lessons
›
Machine Learning
›
Overfitting & Honest Evaluation
Overfitting & Honest Evaluation
Advanced
14 min
Machine Learning
machine-learning · sklearn · overfitting · evaluation
Try it
↓
Lesson
6
of
6
In this track
▾
1
Your First Machine-Learning Model
12 min
2
Train/Test Split: Don't Fool Yourself
12 min
3
Regression: Predicting a Number
14 min
4
Classification: Predicting a Category
14 min
5
Decision Trees & Feature Importance
13 min
6
Overfitting & Honest Evaluation
14 min
←
→
Loading lesson…
←
Previous lesson
Decision Trees & Feature Importance
Advanced · 13 min
Next lesson
→
Series & DataFrame: the two shapes of pandas
Advanced · 12 min
Related lessons
Advanced · 12 min
Train/Test Split: Don't Fool Yourself
Why you must hold data back, and how to measure honest accuracy.
Advanced · 13 min
Decision Trees & Feature Importance
Train a tree you can read, and see which features actually matter.
Advanced · 14 min
Classification: Predicting a Category
Predict yes/no outcomes with logistic regression and read accuracy.