Supervised learning
Supervised learning trains a model on examples that come with the correct answer attached, so it learns to predict those answers for new examples it has not seen.
Supervised learning is one of the main ways machine learning is done. Each training example has features, the inputs, and a label, the answer the model should give. Google's machine learning course uses a weather model as its example: readings such as temperature, humidity and air pressure are the features, and the amount of rain that fell is the label. The model predicts a label, compares its guess with the real one, adjusts itself and repeats across the whole dataset, often many times.
Google's glossary likens it to studying a set of questions with their answers: once a student has mastered the pattern, they can answer new questions on the same topic. Supervised tasks come in two main kinds. Classification predicts a category, such as spam or not spam, or which language a sentence is in. Regression predicts a number, such as a house price or millimetres of rain.
The quality of the result depends on the labels and on how well the training data covers the cases the model will meet. Google's course points out that a rainfall model trained only on July data would predict January poorly. Labels also cost money and time, because people usually have to create them, and mistakes or biases in the labels are learned along with everything else.
Supervised learning remains part of how chatbots are built. In OpenAI's InstructGPT work, published in March 2022, labellers wrote examples of the responses they wanted and GPT-3 was fine-tuned on them with supervised learning before a reinforcement learning stage. Many everyday business uses of machine learning, such as fraud scores, demand forecasts and document routing, are supervised models trained on a company's own labelled records.
Supervised learning trains on labelled examples, where each input comes with the correct answer, and learns to predict that answer. Unsupervised learning works with unlabelled data and looks for structure, such as groups of similar items. Supervised learning answers a question you have defined; unsupervised learning helps you find patterns you had not defined in advance. Spam filters trained on emails marked as spam or not spam, models that predict house prices from past sales, and systems that predict rainfall from weather readings are all supervised learning. So is the supervised fine-tuning stage of a chatbot, where the model learns from example conversations written by people. Both are kinds of supervised learning. Classification predicts which category an example belongs to, such as fraudulent or legitimate. Regression predicts a numerical value, such as next month's sales or a house price. In supervised learning the labels are the only source of the right answers, so the model can be no better than they are. Too few labels, inconsistent labels or labels that reflect past biases all carry through into the model's predictions.Common questions
What is the difference between supervised and unsupervised learning?
What are examples of supervised learning?
What is the difference between classification and regression?
Why is labelled data so important?
Search for "supervised learning", "classification vs regression" or "labelled data" to find introductions and tutorials. Reliable sources include Google's Introduction to Machine Learning course and glossary, documentation for libraries such as scikit-learn, and university course notes. When a product is described as trained on labelled data, ask who created the labels and how their accuracy was checked.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.