{"id":906,"date":"2018-09-27T06:12:50","date_gmt":"2018-09-27T03:12:50","guid":{"rendered":"http:\/\/kusuaks7\/?p=511"},"modified":"2021-05-11T13:59:52","modified_gmt":"2021-05-11T13:59:52","slug":"explaining-supervised-learning-to-a-kid-or-your-boss","status":"publish","type":"post","link":"https:\/\/www.experfy.com\/blog\/ai-ml\/explaining-supervised-learning-to-a-kid-or-your-boss\/","title":{"rendered":"Explaining supervised learning to a kid (or your boss)"},"content":{"rendered":"<p><strong><em>Ready to learn Machine Learning? Browse<\/em><\/strong> <strong><em><a href=\"https:\/\/www.experfy.com\/training\/tracks\/machine-learning-training-certification\">Machine Learning Training and Certification courses<\/a> developed by industry thought leaders and Experfy in Harvard Innovation Lab.<\/em><\/strong><\/p>\n<p id=\"b716\" name=\"b716\">Now that you know what <a href=\"https:\/\/www.experfy.com\/blog\/the-simplest-explanation-of-machine-learning-youll-ever-read\">machine learning<\/a>&nbsp;is, let&rsquo;s meet the easiest kind. My goal here is to get humans of all stripes and (almost) all ages comfy with its basic jargon:&nbsp;<em>instance, label, feature, model, algorithm, and supervised learning.<\/em><\/p>\n<h3 id=\"7980\" name=\"7980\"><strong>Instances<\/strong><\/h3>\n<p id=\"e600\" name=\"e600\">Behold: four instances!<\/p>\n<figure id=\"af72\" name=\"af72\">\n<p><canvas height=\"28\" width=\"75\"><\/canvas><img decoding=\"async\" data-src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*gU2-19xUQY9ReqjIXCGSfA.png\" src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*gU2-19xUQY9ReqjIXCGSfA.png\" style=\"width: 640px; height: 249px;\" \/><\/p>\n<\/figure>\n<p id=\"8298\" name=\"8298\">Instances are also called &lsquo;examples&rsquo; or &lsquo;observations.&rsquo;<\/p>\n<h3 id=\"7095\" name=\"7095\"><strong>Data table<\/strong><\/h3>\n<p id=\"996a\" name=\"996a\">What do these examples look like when we put them in a table? Sticking with convention (because good manners are good), each row is an instance.<\/p>\n<figure id=\"34d8\" name=\"34d8\">\n<p><canvas height=\"15\" width=\"75\"><\/canvas><img decoding=\"async\" data-src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*Uoaqd1A53uVxLCmo_WkNDA.png\" src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*Uoaqd1A53uVxLCmo_WkNDA.png\" \/><\/p>\n<\/figure>\n<p id=\"a6da\" name=\"a6da\">Isn&rsquo;t data pretty? But what exactly are we looking at? Let&rsquo;s start with two special columns: a unique ID and, because we&rsquo;re lucky this time around, a label for each instance.<\/p>\n<h3 id=\"09f4\" name=\"09f4\"><strong>Labels<\/strong><\/h3>\n<p id=\"a2fa\" name=\"a2fa\">The label is the right answer. It&rsquo;s what we&rsquo;d like the computer to learn to output when we show it a photograph like this one, which is why some people prefer the term &lsquo;target&rsquo;, &lsquo;output&rsquo;, or &lsquo;response&rsquo;.<\/p>\n<h3 id=\"d8ad\" name=\"d8ad\"><strong>Features<\/strong><\/h3>\n<p id=\"4e22\" name=\"4e22\">What&rsquo;s in the other columns? Pixel colors. Unlike you, the computer looks at images as numbers, not pretty lights. What you&rsquo;re seeing is the red-green-blue values for the pixels, starting in the top left corner of the image and working our way down. Don&rsquo;t believe me? Try entering the values from my data table into this&nbsp;<a data-href=\"https:\/\/www.colorspire.com\/rgb-color-wheel\/\" href=\"https:\/\/www.colorspire.com\/rgb-color-wheel\/\" rel=\"noopener noreferrer\" target=\"_blank\">RGB color wheel<\/a>&nbsp;and see what colors it gives you. Want to know how to get the pixel values from a photo? Look over my shoulder at my code&nbsp;<a data-href=\"https:\/\/github.com\/kozyrkov\/deep-learning-walkthrough\/blob\/master\/Demo04.pdf\" href=\"https:\/\/github.com\/kozyrkov\/deep-learning-walkthrough\/blob\/master\/Demo04.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">here<\/a>.<\/p>\n<figure id=\"2ad6\" name=\"2ad6\">\n<p><canvas height=\"15\" width=\"75\"><\/canvas><img decoding=\"async\" data-src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*Uoaqd1A53uVxLCmo_WkNDA.png\" src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*Uoaqd1A53uVxLCmo_WkNDA.png\" \/><\/p>\n<\/figure>\n<p id=\"8126\" name=\"8126\">You know what&rsquo;s pretty cool? Every time you look at a digital photograph, that&rsquo;s you analyzing data, making sense of something that&rsquo;s stored as a bunch of numbers. No matter who you are, you&rsquo;re already a data analyst. You rockstar, you!<\/p>\n<blockquote id=\"dd5d\" name=\"dd5d\"><p>You&rsquo;re already a data&nbsp;analyst!<\/p><\/blockquote>\n<p id=\"945b\" name=\"945b\">These pixel values are inputs that the computer will be learning from. I&rsquo;m not a huge fan of the machine learning name for them (&lsquo;features&rsquo;) because that word means all kinds of things in all kinds of disciplines. You might see people using other words instead: &lsquo;inputs&rsquo;, &lsquo;variables&rsquo;, or &lsquo;predictors&rsquo;.<\/p>\n<h3 id=\"9761\" name=\"9761\"><strong>Model and algorithm<\/strong><\/h3>\n<p id=\"3747\" name=\"3747\">Our features will form the basis of the model (that&rsquo;s a fancy word for recipe) that the computer will use to go from pixel colors to labels.<\/p>\n<p id=\"d914\" name=\"d914\">But how? That&rsquo;s the job of the machine learning algorithm. You can see how it works behind the scenes in my other <a href=\"https:\/\/www.experfy.com\/blog\/machine-learning-is-the-emperor-wearing-clothes\">article<\/a>, but for now, let&rsquo;s use an existing and awesome algorithm: your brain!<\/p>\n<h3 id=\"af05\" name=\"af05\"><strong>Supervised learning<\/strong><\/h3>\n<figure id=\"44e3\" name=\"44e3\">\n<p><canvas height=\"28\" width=\"75\"><\/canvas><img decoding=\"async\" data-src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*gU2-19xUQY9ReqjIXCGSfA.png\" src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/1*gU2-19xUQY9ReqjIXCGSfA.png\" \/><\/p>\n<\/figure>\n<p id=\"ab5d\" name=\"ab5d\">I&rsquo;d like you to be my machine learning system. Glance at the instances again and do some learning! What is this?<\/p>\n<figure id=\"26e8\" name=\"26e8\">\n<p><canvas height=\"75\" width=\"58\"><\/canvas><img decoding=\"async\" data-src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/0*CZBJYbUokwlVtDxX\" src=\"https:\/\/cdn-images-1.medium.com\/max\/640\/0*CZBJYbUokwlVtDxX\" \/><\/p>\n<\/figure>\n<p id=\"79df\" name=\"79df\" style=\"text-align: center;\">Classify this image using what you&rsquo;ve learned from the examples&nbsp;above.<\/p>\n<p name=\"79df\">&ldquo;Blorkle&rdquo;? Yup. You&rsquo;ve got this! What you just did was supervised learning, awesome! You&rsquo;ve now experienced the easiest learning type there is. If you&rsquo;re able to frame your problem as supervised learning, that&rsquo;s a good idea. The others are harder&hellip; so let&rsquo;s go meet one:<a href=\"https:\/\/www.experfy.com\/blog\/unsupervised-learning-demystified\"> unsupervised learning<\/a>.<\/p>\n<p id=\"6ac6\" name=\"6ac6\"><strong>Summary:<\/strong>&nbsp;You&rsquo;re dealing with supervised learning if the algorithm has the correct label handy for every instance. Later, it will use the model, or recipe, to label new instances, just like you did.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that you know what&nbsp;machine learning&nbsp;is, let&rsquo;s meet the easiest kind. My goal here is to get humans of all stripes and (almost) all ages comfy with its basic jargon:&nbsp;instance, label, feature, model, algorithm, and supervised learning. You&rsquo;re dealing with supervised learning if the algorithm has the correct label handy for every instance. Later, it will use the model, or recipe, to label new instances.<\/p>\n","protected":false},"author":335,"featured_media":2966,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[183],"tags":[97],"ppma_author":[2050],"class_list":["post-906","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-ml","tag-artificial-intelligence"],"authors":[{"term_id":2050,"user_id":335,"is_guest":0,"slug":"cassie-kozyrkov","display_name":"Cassie Kozyrkov","avatar_url":"https:\/\/www.experfy.com\/blog\/wp-content\/uploads\/2020\/04\/medium_df35f80d-2bff-4fe3-b741-a94d51320e00-150x150.jpg","user_url":"https:\/\/careers.google.com\/?src=Online\/LinkedIn\/linkedin_profilepage&amp;utm_source","last_name":"Kozyrkov","first_name":"Cassie","job_title":"","description":"Cassie Kozyrkov is Chief Decision Scientist at Google, Inc. With a unique combination of deep technical expertise, and world-class public-speaking skills, she has provided guidance on more than 100 projects and designed Google's analytics program, personally training over 15000 Googlers in statistics, decision-making, and machine learning.\u00a0"}],"_links":{"self":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts\/906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/users\/335"}],"replies":[{"embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/comments?post=906"}],"version-history":[{"count":1,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts\/906\/revisions"}],"predecessor-version":[{"id":6058,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts\/906\/revisions\/6058"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/media\/2966"}],"wp:attachment":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/media?parent=906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/categories?post=906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/tags?post=906"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}