1 minute read

In this article, we will look into two different kinds of Machine learning algorithms, Classification and Regression models.

The main objective of Machine learning model is to find a function f, such that when a query point (x_q) is passed thru the function f, it will return desired output (y_q_^)

Classification:

Lets consider an example for understanding the classification problems. Say, we want to classify reviews in an eCommerce website and typically we need to classify each review as positive review, negative review or neutral review. This type of problem is called Classification problem.

Here when we look closely, we are classifying the datapoints into set of classes like positive, negative, neutral etc.. This kind of technique is called Classification.

We can interpret classification dataset as below:

Classification

where x is input data and y is the output class.

Regression:

Consider this example for understanding regression problems. Say, we want to predict the heights of students in a school. Here our predicted value is a real number since height is a real number.

We can interpret regression dataset as below:

Regression

where x is input data and y is a real valued number

Did you observe difference between Classification and Regression ?

If you observe closely on the dataset interpretations for Classification and Regression, we can see the difference in the output variable ‘y’.

In Classification, ‘y’ is a finite number where as in Regression, ‘y’ is a real valued number, which is a difference on very high level. We will understand more differences as we go on.

Bottomline:

On simple and very highlevel terms, difference between Classification and Regression comes to difference between finite integer and Real valued number 😃

Hope you like this article and feel free to share your comments.

Updated: