When Will You Use Classification over Regression?

Classification is used when your target is categorical, while regression is used when your target variable is continuous. Both classification and regression belong to the category of supervise machine learning algorithms.

Examples of classification problems include:

  • Predicting yes or no
  • Estimating gender
  • Breed of an animal
  • Type of color

Examples of regression problems include:

  • Estimating sales and price of a product
  • Predicting the score of a team
  • Predicting the amount of rainfall