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
›
Train/Test Split: Don't Fool Yourself
Train/Test Split: Don't Fool Yourself
Advanced
12 min
Machine Learning
machine-learning · sklearn · evaluation
Try it
↓
Lesson
2
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
Your First Machine-Learning Model
Advanced · 12 min
Next lesson
→
Regression: Predicting a Number
Advanced · 14 min
Related lessons
Advanced · 14 min
Overfitting & Honest Evaluation
See overfitting happen, then read a confusion matrix like a pro.
Advanced · 12 min
Your First Machine-Learning Model
Train a real scikit-learn model in your browser and make a prediction.
Advanced · 14 min
Regression: Predicting a Number
Fit, predict, and score a regression model with R² and MAE.