Machine Learning Basics
Which of the following supervised learning tasks is a regression task?
- ADeciding from the body of an email whether it is spam
- BIdentifying which digit from 0 to 9 an image of a handwritten digit shows
- CPredicting the price of a house from its floor area, distance to the station and so on
Show answer and explanation
Answer: C. Predicting the price of a house from its floor area, distance to the station and so on
Supervised learning trains a model that predicts an output from an input, using pairs of inputs and correct answers (labels). When the predicted output is a continuous number, the task is called regression; when it is one of a fixed set of classes, it is called classification. A house price is a continuous number, so this is regression. Spam detection is two-class classification, and handwritten digit recognition is ten-class classification.
- A. It chooses between two classes, "spam" and "not spam", so it is classification.
- B. It chooses among ten classes, 0 to 9, so it is classification.
- C. Correct. It predicts a continuous number, the price, so it is regression.