Concept · filed under Machine learning basics (AI-900)
Supervised vs unsupervised learning: regression, classification, clustering
The difference is the labels. If every training example comes with the answer attached, the learning is supervised; if there are no answers, it is unsupervised and the model looks for structure on its own. AI-900 built three model types on that split: regression predicts a number, classification predicts a category, and clustering groups unlabeled data. AI-901 dropped the classic machine learning techniques from its outline, so this page is AI-900 material kept as background.
- ExamAI-901 (replaced AI-900 on June 30, 2026)
- ScopeAI-900 only · not on AI-901
- Questions here7
- UpdatedOct 19, 2026
Fig. 1
Table 1
Three model types, two kinds of learning
| Point | Regression | Classification | Clustering |
|---|---|---|---|
| Learning type | Supervised | Supervised | Unsupervised |
| Labels in training data | Yes, numbers | Yes, categories | None |
| Output | A number | One of two or more categories | A group for each item |
| Example | Minutes until a pizza arrives | Which of three plant species a leaf belongs to | Bike-share rides with similar patterns |
| Judged by | How far predictions land from real values | How many labels it gets right, and which ones | How tight and separate the groups are |
Reading a scenario the AI-900 way
AI-900 asked this as a scenario: here is what a business wants to predict, which type of machine learning is it? The output decided. A quantity is regression, even when it is a whole number such as units sold next week. A choice between named options is classification, even when the model also reports a probability. If nobody has the answers to train on, it is clustering.
Features and labels carry the rest. Features are the inputs the model looks at, such as start hour, ride length and station; the label is the value it learns to predict. Unsupervised data has features and no label.
“Unsupervised” sounds more adventurous than it is. A person usually chooses how many clusters to look for and names them afterward, as with the rides in the figure.
The vocabulary outlived the exam. A churn score or a sales forecast is still a supervised model doing what AI-900 described, while the generative models AI-901 cares about learn by predicting the next token across huge amounts of text; that side is under how generative AI models work. Once a classifier exists, the next question is how good it is: see precision vs recall. The rest of the AI-900 machine learning material, Azure Machine Learning included, is under machine learning basics.
Three questions before you pick
- Is there a known answer in the training data? If not, it is clustering.
- Is the answer a quantity? Then it is regression.
- Is the answer one of a set of named options? Classification: binary with two options, multiclass with more.
Worksheet
AI-900 model types, for practice
Retired AI-900 material, kept because the vocabulary still turns up in every model report. Read the output first.
Questions come in batches of five. Pick an answer for each, then evaluate the batch: notes on all four options open under every question.
Accuracy by batch
0 evaluated · 0 right · 7 to go
Batch 1 questions 1–5
01
What is the primary difference between supervised and unsupervised learning in Azure ML?
Your label —The notes on all four options open when this batch is evaluated.
Answer: A
- Correct: Supervised learning trains on examples with known answers, while unsupervised learning finds structure in data without labels.
- Speed depends on the algorithm and the data size, not on whether the data is labeled.
- Memory use varies by model and dataset; it is not what separates the two approaches.
- Both approaches train on data; supervised learning in fact depends on a training step with labeled examples.
02
Which type of machine learning does not require labeled data?
Your label —The notes on all four options open when this batch is evaluated.
Answer: A
- Correct: Clustering groups items by similarity on its own, so it needs no labeled examples.
- Classification learns from examples already tagged with the correct class.
- Prediction is a general goal rather than a learning type, and most predictive models need labeled examples.
- Regression learns from examples with known numeric outcomes, and those outcomes are labels.
03
What are labels in supervised machine learning?
Your label —The notes on all four options open when this batch is evaluated.
Answer: B
- Validation rules check data quality and have nothing to do with the answers a model learns to predict.
- Correct: A label is the known answer for each training example, such as a sale price or spam versus not spam.
- Parameters are the values the model learns during training, while labels are part of the training data.
- Input variables are features; the label is the value the model predicts from them.
04
Which type of machine learning is most appropriate when predicting continuous numerical values, such as house prices?
Your label —The notes on all four options open when this batch is evaluated.
Answer: B
- Recognition is not a machine learning type; it describes tasks like image or speech recognition.
- Correct: Regression predicts a continuous number, such as a house price, from features like size and location.
- Clustering groups similar houses but does not predict a price for any of them.
- Classification predicts a category, such as expensive or affordable, rather than an exact amount.
05
Which machine learning type is most appropriate for predicting whether an email is spam or not?
Your label —The notes on all four options open when this batch is evaluated.
Answer: D
- Dimensionality reduction compresses the number of input features and does not assign emails to classes.
- Clustering groups similar emails without labels, so it would not know which group is spam.
- Regression predicts a number, while spam or not spam is a yes-or-no category.
- Correct: Spam filtering is binary classification, trained on emails already labeled as spam or not spam.
0 of 5 labeled
Batch 2 questions 6–7
06
Which type of machine learning is best suited for grouping similar customers together based on their shopping behavior?
Your label —The notes on all four options open when this batch is evaluated.
Answer: C
- Forecasting predicts future values, such as next month's sales, rather than grouping shoppers.
- Regression predicts a number for each customer, such as total spend, rather than forming groups.
- Correct: Clustering groups customers with similar purchase patterns without needing predefined segment labels.
- Classification assigns customers to categories you already defined and labeled, rather than discovering the groups.
07
In machine learning, what are features?
Your label —The notes on all four options open when this batch is evaluated.
Answer: C
- Accuracy scores measure how well a trained model performs; they are outputs of evaluation, not inputs.
- Validation results come after training and describe performance on held-out data.
- Correct: Features are the measurable inputs, such as square footage or age, that a model uses to predict the label.
- The predictions are the model's outputs; features are what go in.
0 of 2 labeled
Labels, asked about
What is the difference between supervised and unsupervised learning?
Supervised learning trains on examples where the right answer is known and learns to predict it for new data. Unsupervised learning has no answers to learn from and looks for structure instead, such as groups of similar items.
Is regression supervised or unsupervised?
Supervised. A regression model trains on examples whose numeric outcome is already known.
Is machine learning on the AI-901 exam?
Not as a section. Machine learning techniques were 15–20% of AI-900 (AI-900 study guide, skills as of May 2, 2025); the current AI-901 study guide leaves them out.