{"id":189,"date":"2018-01-11T14:22:00","date_gmt":"2018-01-11T14:22:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/2018\/01\/11\/what-is-the-difference-between-classification-and-regression\/"},"modified":"2018-01-11T14:22:00","modified_gmt":"2018-01-11T14:22:00","slug":"what-is-the-difference-between-classification-and-regression","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/what-is-the-difference-between-classification-and-regression\/","title":{"rendered":"What is the Difference between Classification and Regression"},"content":{"rendered":"<div style=\"color: #555555; font-size: 18px; line-height: 30px; text-align: justify;\">\n<div style=\"font-family: 'segoe ui';\">Today we will understand the difference between classification and regression. It would be a very short lesson but at the end it would be very clear what the differences are.<br \/>Remember that both machine learning concepts are the two aspects of supervised learning, where you have a training data set.<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-3oxUNXBM7m4\/Wldt7bwXcSI\/AAAAAAAAAuo\/ggcIz1ljPdg1c9x-uLCQVPmEI9ty_0YkACLcBGAs\/s1600\/What%2Bis%2Bthe%2BDifference%2BBetween%2BClassification%2Band%2BRegression.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"517\" data-original-width=\"962\" height=\"171\" src=\"https:\/\/4.bp.blogspot.com\/-3oxUNXBM7m4\/Wldt7bwXcSI\/AAAAAAAAAuo\/ggcIz1ljPdg1c9x-uLCQVPmEI9ty_0YkACLcBGAs\/s320\/What%2Bis%2Bthe%2BDifference%2BBetween%2BClassification%2Band%2BRegression.jpg\" width=\"320\" \/><\/a><\/div>\n<p>Just as you know, Supervised learning algorithms is divided into two broad&nbsp; categories: classification and regression.<\/p>\n<p><span style=\"color: #45818e;\"><b><span style=\"font-size: large;\">Classification<\/span><\/b><\/span><br \/>In classification, the  objective is to assign each of the input vector to one of a given number of  discrete categories. An algorithm that implements classification is known as a classifier.<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-iw0ESCW3Qkk\/Wlcp8QGG0pI\/AAAAAAAAAtw\/gNgvTwjb2WgMra5VYeuUmCNLKf0VL7R1wCLcBGAs\/s1600\/digit%2Brecognition.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"510\" data-original-width=\"549\" height=\"296\" src=\"https:\/\/3.bp.blogspot.com\/-iw0ESCW3Qkk\/Wlcp8QGG0pI\/AAAAAAAAAtw\/gNgvTwjb2WgMra5VYeuUmCNLKf0VL7R1wCLcBGAs\/s320\/digit%2Brecognition.JPG\" width=\"320\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">Figure 1: Digit recognition of the digit 4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When there are only two classes, then the technique is known as binary classification and the algorithm is called a binary classifier. <br \/>A typical example of classification is the image  recognition problem. The input is a handwritten image made up of a grid  of pixels, say 64 x 64. And the aim is to assign each image to one of 10  classes, 1 to 9. This is illustrated in Figure 1.<\/p>\n<ul>\n<li>Application areas of classification includes:<\/li>\n<li>Handwriting recognition<\/li>\n<li>Computer vision<\/li>\n<li>Voice recognition<\/li>\n<li>Internet Search Engines<\/li>\n<li>Natural language processing <\/li>\n<\/ul>\n<p><span style=\"color: #76a5af;\"><b><span style=\"font-size: large;\">Regression<\/span><\/b><\/span><br \/>In the case of regression the  objective is to find the a relationship among the input variables.  Regression analysis helps in understanding how the dependent variable  changes with respect to the independent variables.<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-NvCz-8DJ-rw\/WlczHm_RWdI\/AAAAAAAAAuA\/SdQTXsZfvHwGaSmqBp2Tu0MXaLptmYEQwCLcBGAs\/s1600\/Regression.JPG\" style=\"margin-left: auto; margin-right: auto;\"><img decoding=\"async\" loading=\"lazy\" border=\"0\" data-original-height=\"655\" data-original-width=\"986\" height=\"265\" src=\"https:\/\/3.bp.blogspot.com\/-NvCz-8DJ-rw\/WlczHm_RWdI\/AAAAAAAAAuA\/SdQTXsZfvHwGaSmqBp2Tu0MXaLptmYEQwCLcBGAs\/s400\/Regression.JPG\" width=\"400\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">Figure 2: Linear Regression in Classification<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;In case of linear regression, the objective is to fit a straight line through the data points to obtain the best fit.<\/p>\n<p>Techniques for Regression includes:<\/p>\n<ul>\n<li>Simple Linear Regression<\/li>\n<li>Gradient Descent<\/li>\n<li>Ordinary Least Squares<\/li>\n<li>Regularization<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today we will understand the difference between classification and regression. It would be a very short lesson but at the end it would be very &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11,139],"tags":[],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/189"}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":0,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}