{"id":7858,"date":"2022-04-11T16:58:04","date_gmt":"2022-04-11T12:28:04","guid":{"rendered":"https:\/\/nazmaran.com\/supervised-machine-learning\/"},"modified":"2023-09-07T00:34:04","modified_gmt":"2023-09-06T21:04:04","slug":"supervised-machine-learning","status":"publish","type":"post","link":"https:\/\/nazmaran.com\/en\/supervised-machine-learning\/","title":{"rendered":"supervised machine learning"},"content":{"rendered":"<h2>How does supervised machine learning work?<\/h2>\n<p>In <a href=\"https:\/\/nazmaran.com\/artificial-intelligence\/supervised-machine-learning\/\"><strong>supervised learning<\/strong><\/a>, models are trained using labeled data sets, where the model learns about each type of data. After completing the training process, the model is tested on test-test data (a subset of the training set) and then predicts the output.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/586.png\" alt=\"\u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0645\u0627\u0634\u06cc\u0646 \u062a\u062d\u062a \u0646\u0638\u0627\u0631\u062a,\u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0646\u0638\u0627\u0631\u062a \u0634\u062f\u0647\" srcset=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/586.png 600w, https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/586-300x150.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><br \/>\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"667\" height=\"183\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/585.jpg\" alt=\"\" srcset=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/585.jpg 667w, https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/585-300x82.jpg 300w\" sizes=\"(max-width: 667px) 100vw, 667px\">\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h2>1. Regression<\/h2>\n<p>In regression, a single output value is generated using the training data. This value is a probabilistic interpretation determined after considering the strength of correlation between the input variables. Regression learns from labeled data sets and is then able to predict a continuous-valued output for new data given to the algorithm. For example, regression can predict the price of a house based on its location, size, and etc. help.<\/p>\n<p><strong>Linear Regression<\/strong> \u2013 This algorithm assumes a linear relationship between two input variables (X) and output (Y) exists from the data it has learned from. The input variable is called the independent variable and the output variable is called the dependent variable. When unseen data is passed to the algorithm, it uses the function, computes the input, and sums it to a continuous value for the output.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"300\" height=\"260\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/232.png\" alt=\"\">\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<p><strong>Logistic Regression<\/strong> \u2013 This algorithm predicts discrete values \u200b\u200bfor a set of independent variables that are passed to it. The algorithm predicts the probability of new data and therefore its output is between 0 and 1.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"253\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/333.png\" alt=\"variable\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h2>Types of regression:<\/h2>\n<p>\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"441\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/2022-04-13_00-35-32-1024x441.jpg\" alt=\"\u0627\u0646\u0648\u0627\u0639 \u0631\u06af\u0631\u0633\u06cc\u0648\u0646\" srcset=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/2022-04-13_00-35-32-1024x441.jpg 1024w, https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/2022-04-13_00-35-32-300x129.jpg 300w, https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/2022-04-13_00-35-32-768x331.jpg 768w, https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/2022-04-13_00-35-32.jpg 1271w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h2>2. Classification<\/h2>\n<p>It involves grouping data into classes. When in classification, the input data is labeled in two separate classes, it is called binary classification. Multiple classification means classifying data into more than two classes. The output will be one of the classes and not the number that was in the regression. Decision trees are classified based on attribute values.<br \/>They use the derived information method and figure out which feature of the dataset provides the best information, making it the root node until they can classify each instance of the dataset. Each branch in the decision tree represents an attribute of the dataset. They are one of the most widely used algorithms for classification.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"204\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/1256.png\" alt=\"2. \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc (Classification)\" \/>\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h2> Naive Bayesian Model<\/h2>\n<p>Naive Bayes model is used for a large set of data. This is a method of assigning class labels using an acyclic graph. This algorithm assumes that the features of the dataset are all independent of each other. This graph contains a parent node and several child nodes. And each child node is assumed to be independent and separate from the parent.<\/p>\n<h2> Decision Trees<\/h2>\n<p>A decision tree is a flowchart-like model that contains conditional control statements that contain decisions and their possible consequences. The output corresponds to the tagging of unpredicted data. In the tree representation, leaf nodes correspond to class labels and internal nodes represent attributes. Decision trees can be used to solve problems with discrete features as well as Boolean functions.<\/p>\n<h2>Support Vector Machines (SVM) <\/h2>\n<p>SVM algorithms are based on statistical learning theory. They use Kernal functions, which are a central concept for most learning tasks. These algorithms create a hypermap that is used to classify two classes from each other.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"204\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/1257.png\" alt=\"\">\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h2>K-Nearest Neighbor<\/h2>\n<p>One of the simplest <a href=\"https:\/\/nazmaran.com\/artificial-intelligence\/%db%8c%d8%a7%d8%af%da%af%db%8c%d8%b1%db%8c-%d9%85%d8%a7%d8%b4%db%8c%d9%86\/\"><strong>machine learning<\/strong><\/a> algorithms is based on the supervised learning technique. The K-NN algorithm assumes the similarity between the new item\/data and the existing items and places the new item in the category that is most similar to the existing categories. In the training phase, the KNN algorithm only stores the data set and when it receives new data, it classifies that data into a category that is very similar to the new data.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/1258.png\" alt=\"\u0646\u0632\u062f\u06cc\u06a9 \u062a\u0631\u06cc\u0646 \u0647\u0645\u0633\u0627\u06cc\u0647(K-Nearest Neighbour )\" srcset=\"https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/1258.png 600w, https:\/\/nazmaran.com\/wp-content\/uploads\/2022\/04\/1258-300x150.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How does supervised machine learning work? In supervised learning, models are trained using labeled data sets, where the model learns about each type of data. After completing the training process, the model is tested on test-test data (a subset of the training set) and then predicts the output. 1. Regression In regression, a single output [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6767,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[257],"tags":[],"class_list":["post-7858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence-en","entry","has-media"],"_links":{"self":[{"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/posts\/7858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/comments?post=7858"}],"version-history":[{"count":0,"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/posts\/7858\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/media\/6767"}],"wp:attachment":[{"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/media?parent=7858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/categories?post=7858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nazmaran.com\/en\/wp-json\/wp\/v2\/tags?post=7858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}