Skip to main content

Explain Classification vs Regression

Premium

In this mock interview, Angie asks Raj (MLE @ Snapchat) to discuss the “differences between classification and regression in machine learning.” Below is a supplemental written solution that shows how to approach the question and follow-up questions.

Answer

Classification and regression refer to the type of outcome predicted by a supervised machine learning algorithm. And so in the case of classification, that will usually predict some sort of category. So in the simplest case, a yes or a no. Regression will be predicting some sort of numerical or continuous value, for example, a person's height.

What makes this answer effective

The answer correctly explains the difference between classification and regression, which is only related to the type of outcome that a machine learning algorithm predicts. It gives a concrete example to clarify this difference.