freecoding.school100% FREE · NO SIGNUP
Tensor TownISSUE #9 of 120

classification vs regression

NeuraVSThe Overfit Ogre
Neura saysClassification predicts a discrete label; regression predicts a continuous number.

The two core supervised tasks. Classification outputs a category — spam/not, cat/dog/bird, fraud/legit. Regression outputs a quantity — price, temperature, score. The distinction drives everything downstream: which models, which loss function, which metrics (accuracy/F1 for classification; MAE/RMSE for regression). Identify which you have before anything else.

Power-ups you unlock

The Overfit Ogre attacks — common mistakes

Boss battleLabel each as classification or regression: churn, revenue, sentiment.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>classification: spam? · cat/dog · fraud?
regression:     price · temperature · score</pre></body></html>
▶ Open the interactive comic issue
‹ Self-Supervised Learning · The Modern ShiftClustering · K-Means · Dbscan ›