Regression
A machine learning task: predict a continuous numerical value. Unlike classification, the response is a number, not a class.
Examples
- Predicting apartment prices based on parameters;
- Predicting tomorrow's temperature;
- Predicting how long a user will spend on a website.
Differences from Classification
| Classification | Regression | |
|---|---|---|
| Response | Class (spam/not spam) | Number (price) |
| Evaluation | Accuracy, F1 | MAE, MSE |
How It Is Evaluated
Error: how much the predicted number differs from the actual number. Common metrics include MAE and MSE.