What is the difference between classification and regression?

Experience Level: Junior
Tags: Machine learning

Answer

Classification and regression are two fundamental tasks in machine learning.

Classification involves predicting a categorical variable, such as whether an email is spam or not, based on a set of input features.

Regression involves predicting a continuous variable, such as the price of a house, based on a set of input features.

Classification and regression use different types of algorithms and evaluation metrics, but the underlying goal is to learn a mapping from the input features to the output variable.

Related Machine learning job interview questions
Machine learning for beginners
Machine learning for beginners

Are you learning Machine learning ? Try our test we designed to help you progress faster.

Test yourself