ML Techniques
The first fork: supervised vs unsupervised, then regression / classification / clustering
AI-900 Domain 2 ("Describe fundamental principles of machine learning on Azure") expects you to identify the right machine-learning technique from a one-paragraph scenario, and Microsoft organizes the whole space with a single decision: does the training data carry known labels?[1]
The figure groups the techniques the way Microsoft does: machine learning splits into two families by whether the data is labeled, and each family contains the specific techniques this page then walks one by one.
Supervised learning: the training data already contains the answers
In supervised learning, the training data includes both feature values (the inputs) and known label values (the correct answers). The model is trained "by determining a relationship between the features and labels in past observations, so that unknown labels can be predicted for features in future cases." Practically: every training row has the right answer attached, a price, a yes/no, a species, and the model learns to reproduce it. Supervised learning splits into two forms by what kind of label it predicts:
- Regression: the label is a numeric value.
- Classification: the label is a category (a class). Two sub-shapes: binary (one of two) and multiclass (one of several).
Unsupervised learning: features only, no answers
Unsupervised learning trains on data "that consists only of feature values without any known labels." There is no answer column; the algorithm finds structure or relationships among the observations themselves. The most common unsupervised technique is:
- Clustering: group similar observations into discrete clusters based purely on feature similarity.
The mechanical test for the exam
When a stem describes the data, ask: is there a known answer attached to each training row?
| If the scenario… | …the technique is | Learning type |
|---|---|---|
| has labeled rows and the answer is a number | Regression | Supervised |
| has labeled rows and the answer is one of two classes | Binary classification | Supervised |
| has labeled rows and the answer is one of several classes | Multiclass classification | Supervised |
| has no labels and you want to discover groupings | Clustering | Unsupervised |
This single table answers the large majority of "which technique" questions on AI-900. The rest of this page makes each row concrete with Microsoft's own canonical examples so you recognize them verbatim if the exam quotes them.
Regression: predict a number (the "how much / how many" technique)
Regression[2] is "a form of supervised machine learning in which the label predicted by the model is a numeric value." You train it on past observations that pair features with a known number, and it predicts a continuous value for new inputs.
Microsoft's canonical AI-900 examples (memorize these)
- Ice cream sales: predict the number of ice creams sold on a given day, based on temperature, rainfall, and windspeed.
- Property price: predict the selling price of a property based on its size in square feet, number of bedrooms, and socio-economic metrics for its location.
- Fuel efficiency: predict a car's fuel efficiency (miles-per-gallon) based on engine size, weight, width, height, and length.
Every one of these asks for an amount: a count, a price, a rate. That is the regression signature.
The exam tell
The word that gives regression away answers "how many / how much / what value / what amount." Any scenario asking to forecast a quantity, amount, price, count, or score points to regression, not classification. "How many units will we sell next month?", "What will this house sell for?", "What temperature will the reactor reach?" are all regression.
The classic trap
Don't let a number that names a category fool you. "Predict whether a customer is in tier 1, 2, or 3" is classification even though the labels look numeric. The values are discrete classes, not a continuous quantity. Regression is for a value on a continuous scale; if the output is a label drawn from a fixed set of categories, it is classification.
Classification: predict a category: binary (one of two) vs multiclass (one of many)
Classification[3] is "a form of supervised machine learning in which the label represents a categorization, or class." Like regression it needs labeled training data, but the label is a category, not a number. Microsoft divides it into two scenarios, and the rarer multilabel variant sits under multiclass; the figure shows that breakdown before each is described.
Binary classification: one of two mutually exclusive outcomes
Binary classification predicts "one of two mutually exclusive outcomes," a true/false or positive/negative answer for a single class. Microsoft's examples:
- Whether a patient is at risk for diabetes, based on clinical metrics like weight, age, and blood glucose level.
- Whether a bank customer will default on a loan, based on income, credit history, age, and other factors.
- Whether a mailing-list customer will respond positively to a marketing offer, based on demographics and past purchases.
The shape is always two options: yes/no, will/won't, is/isn't.
Multiclass classification: one label out of several possible classes
Multiclass classification[4] "extends binary classification to predict a label that represents one of multiple possible classes." Microsoft's examples:
- The species of a penguin (Adelie, Gentoo, or Chinstrap) based on physical measurements.
- The genre of a movie (comedy, horror, romance, adventure, or science fiction) based on cast, director, and budget.
Standard multiclass predicts mutually exclusive labels. "A penguin can't be both a Gentoo and an Adelie," so the model picks exactly one class.
Multilabel: the rarer variant (recognize it, don't overthink it)
Microsoft notes that some algorithms train multilabel models, "in which there may be more than one valid label for a single observation," for example a movie tagged as both science fiction and comedy. If a stem explicitly says an item can carry more than one category at once, that is multilabel; if each item gets exactly one of several categories, it is standard multiclass.
The exam tell
Classification answers "which category / which class / true or false." Count the possible answers: two mutually exclusive outcomes → binary; several mutually exclusive classes → multiclass; multiple simultaneous tags → multilabel. Contrast with regression, which answers "how much."
Clustering: group unlabeled data by similarity (and why it isn't classification)
Clustering[5] is "the most common form of unsupervised machine learning." A clustering algorithm "identifies similarities between observations based on their features, and groups them into discrete clusters," with no previously known label to learn from. Microsoft's examples:
- Group similar flowers based on their size, number of leaves, and number of petals.
- Identify groups of similar customers based on demographic attributes and purchasing behavior (customer segmentation).
Clustering vs multiclass classification: the single most important distinction here
Both assign observations to discrete groups, which is exactly why AI-900 loves to test the difference. The deciding factor is whether the classes are known in advance:
- Classification is supervised: you already know the classes, and the algorithm learns the mapping from features to those known labels.
- Clustering is unsupervised: there is no predefined cluster label; the algorithm groups observations "based purely on similarity of features."
So a scenario that supplies known class labels in the training data is classification, not clustering. A scenario with no labels where the goal is to discover natural groupings is clustering.
Bonus insight Microsoft calls out
Clustering is often used first, to discover what classes even exist. Microsoft's example: cluster customers into segments, analyze and label those segments ("high value – low volume," "frequent small purchaser"), then use that labeled data to train a classification model that predicts which segment a new customer belongs to. The figure traces that pipeline: cluster to discover → label → classify to assign.
The exam tell
No labels + "segment / group / find natural groupings / discover structure" → clustering. Known labels + "assign to one of these categories" → classification.
Deep learning: multi-layer neural networks, conceptually
Deep learning[6] is "an advanced form of machine learning that tries to emulate the way the human brain learns" by building an artificial neural network. For AI-900 you don't need the calculus, you need the vocabulary and the high-level mechanism.
The building blocks
- Neuron: a function that operates on an input value (x) and a weight (w).
- Activation function: wraps each neuron and "determines whether to pass the output on" to the next layer.
- Layers: neural networks stack multiple layers of neurons, "essentially defining a deeply nested function." That nesting, depth, is why the technique is called deep learning and the models are called deep neural networks (DNNs).
What it actually does (same job as the other techniques)
Microsoft is explicit: "just like other machine learning techniques… deep learning involves fitting training data to a function that can predict a label (y) based on the value of one or more features (x)." Deep neural networks can do regression and classification, and are the foundation of more specialized models for computer vision and natural language processing.
How a DNN learns, in one breath
The figure traces Microsoft Learn's own deep-learning training loop, a single cycle repeated over many epochs:
- Feature values (x) are fed forward through the layers; each neuron applies its weight and activation, producing predicted outputs (ŷ).
- A loss function compares the predicted ŷ to the known y and aggregates the error into a single loss value.
- An optimizer adjusts the weights, typically via gradient descent, backpropagated through the layers, to reduce that loss.
- The process repeats over many iterations (epochs) until loss is minimized.
The trained model is simply "the final weight values that result in the most accurate predictions."
The exam framing
Think of deep learning as many layers of weighted neurons trained by minimizing loss. When a stem mentions "neural network," "deep neural network / DNN," "layers," "weights," or "emulating the human brain," the answer is deep learning. Deep learning is how the more advanced Azure AI capabilities (vision, language, generative models) are built, but it is still ordinary supervised learning underneath, predicting a label from features.
Exam-pattern recognition: read the scenario, name the technique
AI-900 rarely asks for definitions in the abstract. It gives you a workload and asks which technique fits. Run every stem through this two-step filter.
Step 1: Are the training rows labeled?
- Labels present → supervised → go to Step 2.
- No labels, want to discover groups → clustering (unsupervised). Done.
Step 2: Is the predicted label a number or a category?
- A number (price, count, amount, rate, score) → regression.
- A category → classification: two mutually exclusive options → binary; several mutually exclusive options → multiclass; multiple simultaneous tags → multilabel.
Worked scenario → technique mappings
| Scenario stem | Technique | Why |
|---|---|---|
| "Predict tomorrow's ice cream sales from weather data" | Regression | Labeled history + numeric output (a count) |
| "Estimate a house's selling price from its features" | Regression | Labeled history + numeric output (a price) |
| "Flag whether a transaction is fraudulent (yes/no)" | Binary classification | Two mutually exclusive labeled classes |
| "Predict whether a customer will default on a loan" | Binary classification | True/false labeled outcome |
| "Identify a penguin's species: Adelie, Gentoo, or Chinstrap" | Multiclass classification | One of several known labeled classes |
| "Tag a movie with all applicable genres at once" | Multilabel classification | Multiple valid labels per item |
| "Segment customers into similar groups (no predefined groups)" | Clustering | No labels; discover groupings by similarity |
| "Recognize objects in photos using a deep neural network" | Deep learning (classification under the hood) | Neural-network keywords; predicts a class |
Highest-yield traps to internalize
- "How much / how many" is regression, "which category" is classification. Don't pick classification for a continuous-number question.
- Numeric-looking class labels are still classification. Tiers 1/2/3 are categories, not a continuous quantity.
- Clustering vs multiclass: both make groups, but only classification has known labels. "No predefined labels" → clustering; "assign to these known classes" → classification.
- Regression and classification require labels. If the stem says the data has no known answers, neither applies. It must be clustering.
- Deep learning is not a separate problem type. It still does regression or classification; the giveaway is neural-network / layers / weights wording, not a new kind of output.
Regression vs classification vs clustering at a glance
| Technique | Predicts | Training data labeled? | Learning type | Microsoft example |
|---|---|---|---|---|
| Regression | A numeric value (a quantity or amount) | Yes: features paired with a known number | Supervised | Predict daily ice cream sales from temperature, rainfall, windspeed |
| Classification (binary) | One of two mutually exclusive classes (true/false) | Yes: features paired with a known class | Supervised | Predict whether a bank customer will default on a loan |
| Classification (multiclass) | One label out of several possible classes | Yes: features paired with a known class | Supervised | Predict the penguin species (Adelie, Gentoo, or Chinstrap) |
| Clustering | Group membership discovered from the data | No: features only, no known labels | Unsupervised | Segment similar customers by demographics and purchasing behavior |
Decision tree
Sharp facts the exam loves — give these one last read before exam day.
Cheat sheet
Sharp facts the exam loves — scan these before test day.
- Known labels in the training data make it supervised
Supervised learning trains on past observations that include both feature values and the correct answers (labels), then predicts the label for new cases; unsupervised learning trains on feature values only, with no labels, and finds structure in the observations themselves. The mechanical test: if every training row already carries the right answer, it's supervised (regression, classification); if there's no answer column, it's unsupervised (clustering).
Trap Calling a task unsupervised because it discovers patterns, when the training data already supplies known labels and the work is really supervised.
10 questions test this
- What is a key characteristic of clustering algorithms in machine learning?
- Which statement accurately describes a characteristic of unsupervised learning in machine learning?
- Which category of machine learning includes both regression and classification techniques?
- Select the answer that correctly completes the sentence. [Answer choice] is a machine learning technique that groups data based on…
- Which category of machine learning trains a model by using a dataset in which each example includes known label values?
- Which statement best describes a key difference between classification and clustering?
- Select the answer that correctly completes the sentence. Clustering is a type of [Answer choice] learning because it does not require…
- Which statement accurately describes unsupervised learning in the context of clustering algorithms?
- Which characteristic distinguishes clustering algorithms from classification algorithms in machine learning?
- Select the answer that correctly completes the sentence. Clustering algorithms allow [Answer choice], meaning the algorithm can learn from…
- Regression predicts a numeric value (supervised)
Regression is supervised learning whose predicted label is a numeric value, learned from past observations that pair features with a known number. The exam tell is a stem asking 'how much / how many / what value / what amount': forecasting a quantity, price, count, rate, or score is regression, not classification.
Trap Reaching for classification when the question asks to forecast a continuous amount like sales or price.
13 questions test this
- A company wants to use Azure Machine Learning to predict the selling price of houses based on features such as square footage, number of…
- You are building a model in Azure Machine Learning to predict monthly electricity bills for customers based on consumption patterns. Which…
- Select the answer that correctly completes the sentence. A [answer choice] model is used to predict a continuous numeric value, such as a…
- You are building a machine learning model to predict the selling price of houses based on features such as square footage, number of…
- A medical research team wants to predict a patient's blood glucose level based on factors such as age, weight, and daily calorie intake.…
- A company wants to predict the selling price of used vehicles based on attributes such as mileage, engine size, and age of the vehicle.…
- A taxi company wants to use Azure Machine Learning to predict passenger fares based on trip distance, duration, and pickup location. Which…
- A hospital wants to estimate the number of days a newly admitted patient is likely to remain hospitalized, based on factors such as age,…
- Select the answer that correctly completes the sentence. A real estate company that wants to estimate the selling price of a house based on…
- A retail company wants to use Azure Machine Learning to analyze historical sales data. Which scenario is appropriate for a regression model?
- A retail company wants to predict future product sales amounts based on historical data including advertising spend and seasonal trends.…
- A hospital wants to use Azure Machine Learning to predict the length of patient hospital stays based on factors such as diagnosis, age, and…
- A transportation company uses Azure Machine Learning to predict daily fuel consumption based on vehicle weight, distance traveled, and…
- Memorize Microsoft's three canonical regression scenarios
Microsoft's AI-900 regression examples recur verbatim: number of ice creams sold on a day from temperature, rainfall, and windspeed; a property's selling price from its size, bedrooms, and location metrics; and a car's fuel efficiency (miles-per-gallon) from engine size and dimensions. Each predicts an amount (a count, a price, a rate) which is the regression signature.
3 questions test this
- A company wants to use Azure Machine Learning to predict the selling price of houses based on features such as square footage, number of…
- You are building a machine learning model to predict the selling price of houses based on features such as square footage, number of…
- Select the answer that correctly completes the sentence. A real estate company that wants to estimate the selling price of a house based on…
- Numeric-looking class labels are still classification
A number that names a category is still a class, so predicting whether a customer is in tier 1, 2, or 3 is classification, not regression: the values are discrete classes, not a continuous quantity. Regression applies only when the output is a value on a continuous scale; a fixed set of categories means classification even when the labels happen to be numbers.
Trap Picking regression because the label values are numbers (tier 1/2/3), when they're really discrete classes.
- Classification predicts a category, not a number
Classification is supervised learning whose label represents a categorization, or class, rather than a number; like regression it needs labeled training data, but the answer is a category. The exam tell is a stem asking 'which category / which class / true or false': contrast regression, which answers 'how much.'
Trap Choosing regression for a 'which category' stem because the training data is labeled, when a categorical answer means classification.
- Binary classification picks one of two mutually exclusive outcomes
Binary classification predicts one of two mutually exclusive outcomes: a true/false or positive/negative result for a single class. Microsoft's examples: whether a patient is at risk for diabetes from clinical metrics; whether a bank customer will default on a loan from income and credit history; whether a mailing-list customer will respond positively to an offer. The shape is always two options: yes/no, will/won't, is/isn't.
Trap Choosing multiclass classification for a yes/no question that only ever has two possible outcomes.
- Multiclass classification picks one of several known classes
Multiclass classification extends binary classification to predict one label out of multiple possible classes, and in most scenarios those labels are mutually exclusive: the model picks exactly one. Microsoft's examples: the species of a penguin (Adelie, Gentoo, or Chinstrap) from physical measurements, and the genre of a movie (comedy, horror, romance, adventure, or science fiction) from cast, director, and budget. A penguin can't be both Gentoo and Adelie, so standard multiclass returns a single class.
Trap Treating a several-classes-but-exactly-one scenario as multilabel, when mutually exclusive classes make it standard multiclass.
3 questions test this
- A wildlife conservation group wants a model that labels each photographed animal as one of several species, such as lion, zebra, or…
- You are configuring an Azure Machine Learning text labeling project where each text document should receive exactly one category from a…
- An online news platform wants to automatically assign each incoming article to one of several predefined topics, such as sports, politics,…
- Multilabel allows more than one valid label per observation
Multilabel classification trains models in which more than one valid label can apply to a single observation, for example a movie tagged as both science fiction and comedy. If a stem says an item can carry more than one category at once, it's multilabel; if each item gets exactly one of several categories, it's standard multiclass.
Trap Calling a multiple-tags-per-item scenario multiclass, when overlapping labels make it multilabel.
- Clustering groups unlabeled data by feature similarity
Clustering is the most common form of unsupervised learning: it identifies similarities between observations from their features and groups them into discrete clusters, with no previously known label to learn from. Microsoft's examples: grouping similar flowers by size, number of leaves, and number of petals, and segmenting similar customers by demographics and purchasing behavior.
14 questions test this
- What characteristic distinguishes clustering from classification in machine learning?
- What distinguishes clustering from classification in machine learning?
- What is a key characteristic of clustering algorithms in machine learning?
- A marketing team wants to divide customers into distinct groups based on their purchasing behavior without any predefined categories. Which…
- Select the answer that correctly completes the sentence. [Answer choice] is a machine learning technique that groups data based on…
- Which Azure Machine Learning capability should you use to train a clustering model for customer segmentation?
- Which scenario is best suited for using a clustering algorithm in Azure Machine Learning?
- Which scenario is most appropriate for using a clustering algorithm?
- Which scenario is most appropriate for using a K-Means clustering algorithm in Azure Machine Learning?
- Select the answer that correctly completes the sentence. Clustering is a type of [Answer choice] learning because it does not require…
- Which statement accurately describes unsupervised learning in the context of clustering algorithms?
- Select the answer that correctly completes the sentence. Clustering algorithms allow [Answer choice], meaning the algorithm can learn from…
- A data scientist wants to explore a dataset and discover unexpected correlations before applying other predictive algorithms. Which machine…
- A retail company wants to segment its products into groups based on sales patterns. No predefined product categories exist. Which…
- Clustering vs classification hinges on whether classes are known in advance
Both clustering and classification assign observations to discrete groups, so AI-900 leans on the difference: classification is supervised (you already know the classes and learn the mapping to those labels) while clustering is unsupervised, with no predefined label, grouping purely by feature similarity. A scenario that supplies known class labels is classification; one with no labels where you discover natural groupings is clustering.
Trap Calling an unlabeled grouping task classification because both methods sort items into groups.
8 questions test this
- What characteristic distinguishes clustering from classification in machine learning?
- What distinguishes clustering from classification in machine learning?
- A marketing team wants to divide customers into distinct groups based on their purchasing behavior without any predefined categories. Which…
- Which scenario is best suited for using a clustering algorithm in Azure Machine Learning?
- Which scenario is most appropriate for using a clustering algorithm?
- Which statement best describes a key difference between classification and clustering?
- Which characteristic distinguishes clustering algorithms from classification algorithms in machine learning?
- A retail company wants to segment its products into groups based on sales patterns. No predefined product categories exist. Which…
- Clustering can discover the classes a later classification model predicts
Clustering is often run first to discover what classes exist: Microsoft's pipeline segments customers into clusters, analyzes and labels those segments (such as 'high value – low volume'), then uses that newly labeled data to train a classification model that predicts which segment a new customer belongs to. The pattern is cluster to discover, label, then classify to assign.
Trap Assuming the clustering model itself assigns each new customer to a segment, when a separate classification model trained on the labeled segments does that.
- Deep learning stacks layers of neurons into a deep neural network
Deep learning is an advanced form of machine learning that emulates how the human brain learns by building an artificial neural network. Each neuron is a function operating on an input value (x) and a weight (w), wrapped in an activation function that decides whether to pass its output to the next layer; stacking multiple layers forms a deeply nested function: that depth is why it's called deep learning, and the models are deep neural networks (DNNs).
4 questions test this
- Select the answer that correctly completes the sentence. Deep learning techniques are based on [answer choice], which use multiple layers…
- A manufacturer wants to recognize complex visual patterns in thousands of product photos by training a layered neural network. Which…
- Which type of machine learning approach does Azure AI Vision use to recognize objects, people, and patterns in images with high accuracy?
- What characteristic distinguishes deep learning from traditional machine learning approaches for computer vision tasks in Azure?
- A deep neural network still does regression or classification
A deep neural network isn't a separate problem type: like other techniques it fits training data to a function predicting a label (y) from features (x), so DNNs perform regression and classification and underpin specialized computer-vision and natural-language models. Training feeds features forward to produce predictions, uses a loss function to measure error against the known y, then adjusts weights (typically gradient descent backpropagated through the layers) over many epochs until loss is minimized; the trained model is just the final weight values.
Trap Treating deep learning as its own kind of ML problem distinct from regression and classification, rather than another way to perform them.
- CNNs are the deep-learning architecture for images
A convolutional neural network (CNN) is a deep-learning architecture for images: filters in convolutional layers extract numeric feature maps from image pixels, pooling layers downsize those maps to emphasize key visual features, and the flattened features feed a fully connected network that predicts a label. Filter weights start random and are tuned over training epochs against known labels, making CNNs the standard architecture for image classification.
Trap Reaching for a Transformer (or RNN) as the go-to architecture for image classification, when CNNs are the standard choice for images.
4 questions test this
- Which deep learning architecture is specifically designed to process 2D image data by applying filters to extract visual features for tasks…
- Which type of neural network architecture is primarily used in Azure AI Vision for image analysis and object recognition tasks?
- Which type of neural network architecture has been fundamental to enabling image classification and object detection in computer vision…
- What do convolutional neural networks (CNNs) learn in their first layers when processing images for computer vision tasks?
- Transformers use attention; the decoder block generates text
The Transformer architecture underpins large language models with two blocks: an encoder that builds embeddings by applying attention (weighing how each token is influenced by the tokens around it) and a decoder that uses those embeddings to predict the next most probable token, generating output one token at a time. It doesn't look anything up; it repeatedly predicts the next token, like super-powerful predictive text.
Trap Assuming a language model retrieves stored answers, when a Transformer generates text by repeatedly predicting the next most probable token.
3 questions test this
- In the Transformer architecture used by large language models, which type of block is primarily responsible for generating new output…
- In the Transformer architecture used by large language models, which mechanism allows the model to weigh the relative importance of each…
- Select the answer that correctly completes the sentence. A solution that builds a language model capable of translating text and…
Also tested in
References
- Fundamentals of machine learning: Types of machine learning
- Fundamentals of machine learning: Regression
- Fundamentals of machine learning: Binary classification
- Fundamentals of machine learning: Multiclass classification
- Fundamentals of machine learning: Clustering
- Fundamentals of machine learning: Deep learning