Machine Learning Basics

Which of the following supervised learning tasks is a regression task?

  1. ADeciding from the body of an email whether it is spam
  2. BIdentifying which digit from 0 to 9 an image of a handwritten digit shows
  3. 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.
Practice this topic Back to topic

Related calculators

Books on Machine Learning Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Machine Learning Basics questions

  1. Which of the following is an example of unsupervised learning?
  2. Which of the following describes reinforcement learning?
  3. Which of the following describes the procedure of clustering with k-means (k-means clustering)?
  4. Which of the following describes principal component analysis (PCA)?
  5. When data is split into training, validation and test sets, which of the following is the main use of the validation set?