classification is about predicting a label or a class whereas regression is about predicting a continuous quantity now let's say that you have to classify your emails into two different routes so here basically we'll be labeling our emails as spam and non-spam mails for this kind of problem where we have to assign our input data into different classes we make use of classification algorithms on the other hand regression is used to predict a continuous quantity now a continuous variable is a variable that has infinite number of