How does a machine learn
Three children, three ways to learn: flashcards, a box of buttons, a bicycle. How does a machine learn: with answers, without them, or by reward? On a table of old phones, the first machine was asked about a hundred it had never seen. Sold or not: right on seventy eight.
हिन्दी में पढ़ें
तीन बच्चे, सीखने के तीन तरीक़े: फ़्लैशकार्ड, बटनों का डिब्बा, और साइकिल। और मशीन कैसे सीखती है: जवाब देखकर, बिना जवाब के, या इनाम से? पुराने फ़ोनों की एक टेबल पे पहली मशीन से सौ ऐसे फ़ोनों के बारे में पूछा, जो उसने नहीं देखे थे। बिकेगा या नहीं, अठहत्तर पे वो सही थी।
Types of machine learning
I am BSK. I build products with AI. Every definition's source is on screen. After this, you will be able to say which ways any AI learned by. The second machine found groups of phones that nobody had named. The third taught itself what price to ask. More, or less? That is coming.
हिन्दी में पढ़ें
मैं बी एस के, ए आई से प्रोडक्ट्स बनाता हूँ। हर परिभाषा का स्रोत स्क्रीन पे है। इसके बाद आप किसी भी ए आई के बारे में बता पाएँगे कि उसने किन तरीक़ों से सीखा। दूसरी मशीन ने फ़ोनों के ऐसे ग्रुप ढूँढे, जिनका नाम किसी ने नहीं बताया था। और तीसरी ने ख़ुद सीखा कि दाम कितना माँगना है। ज़्यादा, या कम? वो आगे।
If you already know these three, stay anyway. There is a fourth way too, and today's big AI stands on it. First the three ways, then the fourth. And last, the chatbot you talk to daily. Which of these did it learn by?
हिन्दी में पढ़ें
अगर आप ये तीनों पहले से जानते हैं, तो भी रुकिए। एक चौथा तरीक़ा भी है, और आज के बड़े ए आई की नींव वही है। पहले तीन तरीक़े, फिर वो चौथा। और आख़िर में वो चैटबॉट, जिससे आप रोज़ बात करते हैं। उसने इनमें से कौन सा तरीक़ा अपनाया?
What data and labels are
Two things first. Data means recorded examples, like a table of phones. A label is the right answer beside an example, like sold or not. This channel has a full AI course. One episode covers both: what does AI learn from, and who writes the right answers? There, every machine learned from answers. Today: when there are no answers.
हिन्दी में पढ़ें
पहले दो बातें। डेटा यानी दर्ज किए हुए उदाहरण, जैसे फ़ोनों की टेबल। और लेबल यानी उदाहरण के साथ लिखा सही जवाब, जैसे बिका या नहीं। इस चैनल पे ए आई का पूरा कोर्स है। उसके एक एपिसोड में ये दोनों हैं: ए आई सीखता किससे है, और सही जवाब कौन लिखता है? वहाँ हर मशीन जवाब देखकर सीखी थी। आज बात उसकी, जब जवाब हों ही नहीं।
What is machine learning
Teaching a machine from data or experience, not with written rules. That is called machine learning. Many people believe that all machine learning works the same way: put data in, get answers out. So, a question. Can you teach a child to ride a bicycle with flashcards?
हिन्दी में पढ़ें
मशीन को नियम लिखकर नहीं, डेटा या अनुभव से सिखाना। इसी को मशीन लर्निंग कहते हैं। बहुत लोग मानते हैं कि मशीन लर्निंग सब एक ही तरह काम करती है: डेटा डालो, जवाब निकालो। तो एक सवाल। क्या फ़्लैशकार्ड दिखाकर किसी बच्चे को साइकिल चलाना सिखाया जा सकता है?
No card has balance written on it; it comes from falling. And sorting buttons needs no card at all. Our table of phones has three different questions too. Will this phone sell? What kinds of phones are in here? And what price should I ask for mine? The first answer sits in a column of the table. The second has no column. For the third, the simplest road: ask a price, see what happens.
हिन्दी में पढ़ें
किसी कार्ड पे संतुलन नहीं लिखा होता, वो गिरकर आता है। और बटन छाँटने के लिए तो किसी कार्ड की ज़रूरत ही नहीं। हमारी फ़ोनों की टेबल पे भी तीन अलग सवाल हैं। ये फ़ोन बिकेगा या नहीं? इसमें किस तरह के फ़ोन हैं? और मैं अपने फ़ोन का दाम कितना माँगूँ? पहले सवाल का जवाब टेबल के एक ख़ाने में लिखा है। दूसरे का कोई ख़ाना नहीं। और तीसरे का सबसे सीधा रास्ता है, ख़ुद दाम माँगकर नतीजा देखना।
For now, take it that each question has one way. At the end, that will break. And to be clear, we made this table ourselves, for teaching: four hundred phones, and not one real listing.
हिन्दी में पढ़ें
अभी के लिए मान लीजिए कि हर सवाल का एक ही तरीक़ा होता है। आख़िर में ये बात टूटेगी। और एक बात साफ़ कर दूँ। ये टेबल हमने सिखाने के लिए ख़ुद बनाई है: चार सौ फ़ोन, और कोई भी असली लिस्टिंग नहीं।
What is supervised learning
Way one, flashcards. A mango's photo on the front, and on the back: mango. The child sees photo and answer together, hundreds of times. Then sees a new one at the market: mango. For a machine, the card's front is the example, the back the right answer. The new mango is a case not yet seen.
हिन्दी में पढ़ें
पहला तरीक़ा, फ़्लैशकार्ड। कार्ड के आगे आम की फ़ोटो है, और पीछे लिखा है: आम। बच्चा फ़ोटो और जवाब साथ-साथ देखता है, सैकड़ों बार। फिर बाज़ार में नया आम देखकर ख़ुद बोल पड़ता है: आम। मशीन के लिए कार्ड का आगे वाला हिस्सा है उदाहरण, और पीछे वाला सही जवाब। नया आम है ऐसा मामला, जो उसने नहीं देखा।
One difference. The child understands a mango; the machine only catches the pattern between example and answer. Learning from examples that carry the right answers is called supervised learning. The name, because behind every answer stands a kind of teacher. Each example holds inputs and the correct output, and the machine seeks a rule that also fits new cases of that kind.
हिन्दी में पढ़ें
बस एक फ़र्क़ है। बच्चा आम को समझता है, पर मशीन सिर्फ़ उदाहरण और जवाब के बीच का पैटर्न पकड़ती है। सही जवाब वाले उदाहरणों से सीखना, इसे सुपरवाइज़्ड लर्निंग कहते हैं। नाम इसलिए, क्योंकि हर जवाब के पीछे जैसे कोई टीचर खड़ा है। हर उदाहरण में इनपुट और सही आउटपुट होता है, और मशीन ऐसा नियम ढूँढती है जो वैसे ही नए मामलों पे भी बैठे।
A well known textbook says most research in machine learning has studied this way. Now our table. The machine saw three hundred phones, each with age, storage, battery and price. So what is the back of the card? The sold or not column. Then it was asked about a hundred phones it had not seen. It was right on seventy eight.
हिन्दी में पढ़ें
एक जानी-मानी किताब के मुताबिक़, मशीन लर्निंग की ज़्यादातर रिसर्च इसी तरीक़े पे हुई है। अब हमारी टेबल। मशीन को तीन सौ फ़ोन दिखाए, हर एक की उम्र, स्टोरेज, बैटरी और दाम। तो कार्ड का पीछे वाला हिस्सा कौन सा है? बिका या नहीं वाला ख़ाना। फिर उससे सौ ऐसे फ़ोनों के बारे में पूछा गया, जो उसने नहीं देखे थे। अठहत्तर पे उसने सही बताया।
But there is a problem. Someone who learned nothing and said sold every time would still get fifty nine right. So it beat the always sold guess by nineteen phones. That is the real gain from learning. An Indian example: a bank's past loans. Each says whether it was repaid, and for a new application the machine guesses that. Supervised learning again.
हिन्दी में पढ़ें
लेकिन एक दिक़्क़त है। अगर कोई बिना सीखे हर फ़ोन पे बिकेगा ही बोल दे, तो भी उनसठ सही आते। यानी हर बार बिकेगा बोलने वाले अंदाज़े से वो उन्नीस फ़ोन ज़्यादा सही है। सीखने से असली फ़ायदा इतना ही हुआ। भारत की मिसाल: बैंक के पुराने लोन। हर लोन के साथ लिखा है कि चुकाया गया या नहीं, और नए आवेदन पे मशीन यही भाँपती है। ये भी सुपरवाइज़्ड लर्निंग है।
So if answers exist, learn from them. But each one must be collected, written by hand or awaited as an outcome. And if there are none?
हिन्दी में पढ़ें
तो जवाब हैं, तो देखकर सीखो। पर हर जवाब जुटाना पड़ता है, हाथ से लिखकर या नतीजे का इंतज़ार करके। और जवाब हों ही नहीं, तब?
What is unsupervised learning
Way two, the box of buttons. Nobody told the child how to sort them. Still, the child makes piles: red here, blue there, white there. The child made the groups. For a machine, buttons are rows of data and piles are groups. But the child picks colour or size. Which columns the machine sees, we pick.
हिन्दी में पढ़ें
दूसरा तरीक़ा, बटनों का डिब्बा। बच्चे को किसी ने नहीं बताया कि बटन कैसे छाँटने हैं। फिर भी वो ढेर बना लेता है: लाल एक तरफ़, नीले एक तरफ़, सफ़ेद एक तरफ़। ग्रुप उसने ख़ुद बनाए। मशीन के लिए बटन हैं डेटा की लाइनें, और ढेर हैं ग्रुप। बस रंग देखे या साइज़, ये बच्चा ख़ुद चुनता है। मशीन कौन से ख़ाने देखे, ये हम चुनते हैं।
Finding groups and patterns in data with no answers is called unsupervised learning. No teacher, and no answer key. There is no target column: the method splits the data so the points in each group sit as close together as possible. And its most common job is to group similar things together.
हिन्दी में पढ़ें
बिना जवाब वाले डेटा में ख़ुद ग्रुप और पैटर्न ढूँढना, इसे अनसुपरवाइज़्ड लर्निंग कहते हैं। न कोई टीचर, न कोई उत्तर-कुंजी। यहाँ कोई टारगेट कॉलम नहीं होता: तरीक़ा डेटा को ऐसे बाँटता है कि हर ग्रुप के पॉइंट आपस में ज़्यादा से ज़्यादा पास हों। और इसका सबसे आम काम है, मिलती-जुलती चीज़ों के ग्रुप बनाना।
Now our table, and your guess. If we hide the sold column, will the first machine still learn, or is another way needed? The first machine can learn nothing now: it needed an answer beside every phone. So one way does not fit every question. So we ran the second way. The machine saw only age and price, and was told: make three groups.
हिन्दी में पढ़ें
अब हमारी टेबल, और आपका अंदाज़ा। हम बिका वाला ख़ाना छिपा दें, तो क्या पहली मशीन वैसे ही सीख लेगी, या कोई और तरीक़ा चाहिए? पहली मशीन अब कुछ नहीं सीख सकती, क्योंकि उसे हर फ़ोन के साथ जवाब चाहिए था। यानी एक ही तरीक़ा हर सवाल पे नहीं चलता। तो हमने दूसरा तरीक़ा चलाया। मशीन को सिर्फ़ उम्र और दाम दिखे, और कहा गया कि तीन ग्रुप बनाओ।
Group one, about a hundred thirty phones. On average nine months old, at around twenty thousand. Group two is phones about two years old, around fourteen thousand. Group three, over three years old, around eight thousand. Nearly new, mid-life, and old. The machine gave no names. It only said which phones sit together, and we named them.
हिन्दी में पढ़ें
पहला ग्रुप, लगभग एक सौ तीस फ़ोन। ये औसतन नौ महीने पुराने हैं, और दाम लगभग बीस हज़ार। दूसरा ग्रुप लगभग दो साल पुराने फ़ोनों का है, दाम लगभग चौदह हज़ार। तीसरा, तीन साल से ज़्यादा पुराने, दाम लगभग आठ हज़ार। नए जैसे, बीच के, और पुराने। ये नाम मशीन ने नहीं दिए। उसने बस बताया कि कौन किसके पास है, और नाम हमने रखे।
And honestly, we asked for three groups, and we chose the two columns. Ask for five, you get five. Often there is no one right count. An Indian example: a shop's thousands of customers. The machine groups them by how they buy; the shopkeeper names them. Unsupervised again: no answers, find groups. Next time an app puts you in a group, ask yourself: who made the groups?
हिन्दी में पढ़ें
और ईमानदारी से कहूँ, तो तीन ग्रुप हमने माँगे थे, और दो ख़ाने भी हमने चुने। पाँच माँगते, तो पाँच मिलते। अक्सर कोई एक सही गिनती होती ही नहीं। भारत की मिसाल: एक दुकान के हज़ारों ग्राहक। मशीन उन्हें ख़रीदारी के हिसाब से ग्रुप में बाँटती है, और नाम दुकानदार रखता है। ये भी अनसुपरवाइज़्ड लर्निंग है: जवाब नहीं, तो ग्रुप ढूँढो। अगली बार कोई ऐप आपको किसी ग्रुप में डाले, तो ख़ुद से पूछिए: ये ग्रुप बनाए किसने?
What is reinforcement learning
Way three, learning to ride a bicycle. Here neither cards nor piles help. Lean too far, you fall. Keep your balance, you ride on. After every try, the body knows whether it went well or badly. For a machine, each try is a decision, a fall a penalty, riding on a reward. A fall is felt at once; its reward often comes late.
हिन्दी में पढ़ें
तीसरा तरीक़ा, साइकिल चलाना सीखना। यहाँ न कार्ड काम आते हैं, न ढेर बनाना। ज़्यादा झुके, तो गिरे। संतुलन बना, तो आगे बढ़े। हर कोशिश के बाद शरीर को पता चल जाता है कि अच्छा हुआ या बुरा। मशीन के लिए हर कोशिश है एक फ़ैसला, गिरना सज़ा, और आगे बढ़ना इनाम। बस गिरना तुरंत पता चलता है, मशीन का इनाम अक्सर देर से आता है।
Act, get a reward or penalty, improve. Finding out by trying which actions bring the most reward is called reinforcement learning. The aim: learn a policy that picks, in every situation, the action with the most total reward ahead, on average. Now the third question: what price to ask for a phone? We built a seller machine, and simulated buyers on our table's own rule.
हिन्दी में पढ़ें
कुछ करो, इनाम या सज़ा पाओ, और सुधरो। आज़माकर ख़ुद ढूँढना कि किस काम से सबसे ज़्यादा इनाम मिलता है, इसे रीइन्फ़ोर्समेंट लर्निंग कहते हैं। मक़सद है ऐसी नीति सीखना, जो हर हालत में वो काम चुने जिससे आगे का कुल इनाम औसतन सबसे ज़्यादा हो। अब तीसरा सवाल: फ़ोन का दाम कितना माँगें? हमने एक बेचने वाली मशीन बनाई, और ख़रीदार भी कंप्यूटर में बनाए, हमारी टेबल के ही नियम पे।
Each phone has a usual price, set by age, storage and battery. The machine chooses: ask that, or up to three thousand under or over. The reward is the money in hand within thirty days. If the phone does not sell, nothing. Nobody told it the right price. We let it try anything one time in ten. That is the snag: try something new, or keep doing what works? This dilemma belongs to this way.
हिन्दी में पढ़ें
हर फ़ोन का एक चलता दाम है, जो उसकी उम्र, स्टोरेज और बैटरी से बनता है। मशीन चुनती है: यही माँगूँ, या तीन हज़ार तक कम या ज़्यादा। इनाम है वो पैसा, जो तीस दिन के अंदर हाथ आया। फ़ोन नहीं बिका, तो कुछ नहीं। सही दाम उसे किसी ने नहीं बताया। हमने उसे दस में से एक बार कुछ भी आज़माने दिया। दिक़्क़त यही है: कुछ नया आज़माऊँ, या जो चल रहा है वही करूँ? ये उलझन इसी तरीक़े की है।
First two hundred listings: about ten thousand each. Last two hundred: about eleven thousand. Roughly a thousand more a phone. And what did it learn? In over four hundred fifty of the last five hundred, it asked two thousand under the usual price. Checked against our simulated market's rule, this was the best paying of its seven choices. Phones priced high just sit there.
हिन्दी में पढ़ें
पहली दो सौ लिस्टिंग में उसे औसतन लगभग दस हज़ार मिले। आख़िरी दो सौ में, लगभग ग्यारह हज़ार। यानी हर फ़ोन पे लगभग हज़ार रुपये ज़्यादा। और उसने ख़ुद क्या सीखा? आख़िरी पाँच सौ में से साढ़े चार सौ से ज़्यादा बार, उसने चलते दाम से दो हज़ार कम माँगा। हमारे बनाए बाज़ार के नियम से जाँचा, तो उसके सात विकल्पों में यही सबसे फ़ायदे का निकला। ज़्यादा माँगने वाले फ़ोन पड़े रह जाते हैं।
In the real world, in October twenty fifteen, a program beat the European champion of the board game Go. Five games to nothing. The researchers say it was the first time a program beat a human professional on the full board. It also learned by playing itself. An Indian example: picture a robot in a godown that learns its route from every bump. That is reinforcement learning too.
हिन्दी में पढ़ें
असली दुनिया में, अक्टूबर दो हज़ार पंद्रह में एक प्रोग्राम ने गो नाम के बोर्ड गेम में यूरोप के चैंपियन को हराया। पाँच के पाँच गेम। रिसर्चरों के मुताबिक़, पहली बार किसी प्रोग्राम ने पूरे बोर्ड पे किसी प्रोफ़ेशनल खिलाड़ी को हराया था। उसने अपने ही ख़िलाफ़ खेलकर भी सीखा था। भारत की मिसाल: सोचिए, किसी गोदाम में सामान उठाने वाला रोबोट, जो हर टक्कर से सीखता है कि रास्ता कौन सा है। ये भी रीइन्फ़ोर्समेंट लर्निंग है।
Stop for a second. Who told the seller machine the right price? Nobody. It tried, counted the money, improved. When all you get is a result, learn by trying.
हिन्दी में पढ़ें
एक सेकंड रुकिए। बेचने वाली मशीन को सही दाम किसने बताया था? किसी ने नहीं। उसने आज़माया, पैसा गिना, और ख़ुद सुधरी। सिर्फ़ नतीजा मिलता है, तो आज़माकर सीखो।
What is self-supervised learning
So that is three ways. But today's big AI is built on a fourth way, which sits between the first two. Think of your phone's keyboard. You type 'I have reached', and it suggests the next word: 'home'. Now think. Hide the next word of any sentence, and you have a question. The answer? It is already in the sentence.
हिन्दी में पढ़ें
तो तीन तरीक़े हो गए। पर आज के बड़े ए आई की नींव एक चौथे तरीक़े पे है, जो पहले दो के बीच बैठता है। अपने फ़ोन का कीबोर्ड याद कीजिए। आप लिखते हैं, मैं घर पहुँच, और वो अगला शब्द सुझाता है: गया। अब ये सोचिए। किसी भी वाक्य का अगला शब्द छिपा दो, तो सवाल बन गया। और जवाब? वो वाक्य में ही लिखा है।
No person had to write a single label. And such models learn by reading huge amounts of text. When the data supplies its own answers, it is called self-supervised learning. No teacher, and yet learning from answers. A part of the data is hidden and used as the label, and the problem becomes supervised.
हिन्दी में पढ़ें
किसी इंसान को एक भी लेबल नहीं लिखना पड़ा। और ऐसे मॉडल ढेर सारा टेक्स्ट पढ़कर सीखते हैं। जब डेटा ख़ुद अपने जवाब दे, उसे सेल्फ़ सुपरवाइज़्ड लर्निंग कहते हैं। टीचर कोई नहीं, फिर भी जवाब देखकर सीखना। डेटा का ही कोई हिस्सा छिपाकर उसी को लेबल बना दिया जाता है, और समस्या सुपरवाइज़्ड बन जाती है।
Three more names you will hear. Some answers only: semi-supervised. A handful of examples: few-shot. Learning as data arrives: online.
हिन्दी में पढ़ें
तीन नाम और, जो आप सुनेंगे। कुछ ही जवाब हों, तो सेमी सुपरवाइज़्ड। गिने-चुने उदाहरण, तो फ़्यू शॉट। नया डेटा आते-आते सीखना, ऑनलाइन लर्निंग।
How a chatbot is trained
Now the chatbot you talk to every day. Which of these ways did it learn by? Said plainly: big real systems often mix several of these ways. These boxes are only a map for teaching. Even that Go program. First it learned from expert human games, with answers. Then by playing itself, by reward.
हिन्दी में पढ़ें
अब वो चैटबॉट, जिससे आप रोज़ बात करते हैं। वो इनमें से किस तरीक़े से सीखा? सीधी बात ये है: बड़े असली सिस्टम अक्सर इनमें से कई तरीक़े मिलाते हैं। ये डिब्बे सिर्फ़ समझाने का नक़्शा हैं। वो गो वाला प्रोग्राम भी। पहले उसने इंसानी उस्तादों के खेल देखकर, जवाब के साथ सीखा। फिर अपने ही ख़िलाफ़ खेलकर, इनाम से।
And chat assistants? A twenty twenty two study published the recipe for one. It starts from a ready model, then three steps. Start: a model that learned to guess the next word on web pages: the fourth way. Step one: people write what good answers look like, and the model learns from them. The first way.
हिन्दी में पढ़ें
और चैट वाले असिस्टेंट? दो हज़ार बाईस की एक रिसर्च ने ऐसे एक असिस्टेंट का नुस्ख़ा छापा। शुरुआत एक तैयार मॉडल से होती है, फिर तीन क़दम। शुरुआत ऐसे मॉडल से, जिसने इंटरनेट के पन्नों पे अगला शब्द भाँपना सीखा है। यानी चौथा तरीक़ा। पहला क़दम: लोग ख़ुद लिखते हैं कि अच्छा जवाब कैसा हो, और मॉडल उनसे सीखता है। यानी पहला तरीक़ा।
Step two: people rank its answers from best to worst. From those rankings, a second model learns to give scores. Step three: those scores become the reward improving the first model: the third way.
हिन्दी में पढ़ें
दूसरा क़दम: लोग मॉडल के जवाबों को अच्छे से बुरे तक रैंक करते हैं। उन रैंकों से एक दूसरा मॉडल अंक देना सीखता है। तीसरा क़दम: वही अंक इनाम बनकर पहले मॉडल को सुधारते हैं। यानी तीसरा तरीक़ा।
Which type of learning, when
So, the three children. The flashcard child learned from answers, the button child without them, and the cyclist by reward. So, again: how does a machine learn: with answers, without them, or by reward? All four. Which one depends on what you have: answers, data without them, only results, or data that answers itself.
हिन्दी में पढ़ें
तो वो तीन बच्चे। फ़्लैशकार्ड वाले ने जवाब देखकर सीखा, बटन वाले ने बिना जवाब के, और साइकिल वाले ने इनाम से। तो वही सवाल: मशीन कैसे सीखती है, जवाब देखकर, बिना जवाब के, या इनाम से? चारों से। कौन सा, ये आपके पास क्या है उस पे है: जवाब, बिना जवाब का डेटा, सिर्फ़ नतीजा, या ख़ुद जवाब देने वाला डेटा।
In five words, in the comments: which way did your email's spam filter learn by? How does a machine guess a phone's price? That is next. Subscribe.
हिन्दी में पढ़ें
एक सवाल, कमेंट में पाँच शब्दों में: आपके ईमेल का स्पैम फ़िल्टर किस तरीक़े से सीखा होगा? मशीन किसी फ़ोन का दाम कैसे भाँपती है, अगला एपिसोड यही है। सब्सक्राइब कीजिए।
Ideas to keep
- Supervised learning
- Learning from examples that carry the right answers is called supervised learning. The name, because behind every answer stands a kind of teacher. Each example holds inputs and the correct output, and the machine seeks a rule that also fits new cases of that kind.
- Unsupervised learning
- Finding groups and patterns in data with no answers is called unsupervised learning. No teacher, and no answer key.
- Reinforcement learning
- Act, get a reward or penalty, improve. Finding out by trying which actions bring the most reward is called reinforcement learning.
- Self-supervised learning
- When the data supplies its own answers, it is called self-supervised learning. No teacher, and yet learning from answers.
THE WORKED CASE
Follow the example
And to be clear, we made this table ourselves, for teaching: four hundred phones, and not one real listing. Way one, flashcards. A mango's photo on the front, and on the back: mango. The child sees photo and answer together, hundreds of times. Then sees a new one at the market: mango. For a machine, the card's front is the example, the back the right answer. The new mango is a case not yet seen. One difference. The child understands a mango; the machine only catches the pattern between example and answer. Learning from examples that carry the right answers is called supervised learning. The name, because behind every answer stands a kind of teacher. Each example holds inputs and the correct output, and the machine seeks a rule that also fits new cases of that kind. A well known textbook says most research in machine learning has studied this way. Now our table. The machine saw three hundred phones, each with age, storage, battery and price. So what is the back of the card? The sold or not column. Then it was asked about a hundred phones it had not seen. It was right on seventy eight. But there is a problem. Someone who learned nothing and said sold every time would still get fifty nine right. So it beat the always sold guess by nineteen phones. That is the real gain from learning. An Indian example: a bank's past loans. Each says whether it was repaid, and for a new application the machine guesses that. Supervised learning again.
Check your understanding
Go to the source
- Sutton and Barto, *Reinforcement Learning: An Introduction*, 2nd ed., MIT Press 2018, ch. 1, p. 2 (the authors' online copy, RLbook2020.pdf)
- Google for Developers, Machine Learning Glossary, "unsupervised machine learning"
- Google for Developers, Introduction to Machine Learning, "What is ML?"
- Google ML Crash Course, LLM introduction; Glossary, "pre-training"
- Silver et al., "Mastering the game of Go with deep neural networks and tree search", *Nature* 529, 2016; abstract at PubMed 26819042; the match dates from the article's text (the authors' copy, storage.googleapis.com/deepmind-media/alphago/AlphaGoNaturePaper.pdf, p. 5, read 24 Nov 2026)
- Ouyang et al., "Training language models to follow instructions with human feedback", arXiv 2203.02155, 2022 (abstract page; PDF pp. 1, 3, 6)
- Sutton and Barto, 2nd ed., ch. 1, read 24 Nov 2026 in the authors' 2014-15 draft of the 2nd edition (web.stanford.edu course readings copy; incompleteideas.net refused today with a certificate error)