Domain 2 of 5 · Chapter 1 of 3

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.

Machine learning Supervised training data has known labels Regression predicts a numeric value Classification predicts a category Unsupervised no known labels Clustering groups by feature similarity
Technique taxonomy: supervised (labeled) holds regression and classification; unsupervised (unlabeled) holds clustering.

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."

Classification predicts a category Binary one of two mutually exclusive classes Multiclass one label of several classes Standard multiclass picks exactly one class Multilabel (rarer) more than one valid label per item
Classification breakdown: binary (one of two) and multiclass (one of several), where multiclass holds standard multiclass and the rarer multilabel.

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.

Cluster to discover group customers (unsupervised) Label segments name the discovered groups Classify to assign place new customer (supervised)
The cluster-then-classify pipeline: cluster to discover segments, label them, then train a classification model to assign new items.

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:

  1. Feature values (x) are fed forward through the layers; each neuron applies its weight and activation, producing predicted outputs (ŷ).
  2. A loss function compares the predicted ŷ to the known y and aggregates the error into a single loss value.
  3. An optimizer adjusts the weights, typically via gradient descent, backpropagated through the layers, to reduce that loss.
  4. 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.

Forward pass features (x) through layers → outputs (ŷ) Loss function compare ŷ to known y → loss Adjust weights backpropagation to reduce loss Trained model final weights minimizing loss Repeat over epochs
The DNN training loop: forward pass, loss, weight adjustment by backpropagation, repeated over epochs until loss is minimized into the trained model.

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 groupsclustering (unsupervised). Done.

Step 2: Is the predicted label a number or a category?

  • A number (price, count, amount, rate, score) → regression.
  • A categoryclassification: 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

TechniquePredictsTraining data labeled?Learning typeMicrosoft example
RegressionA numeric value (a quantity or amount)Yes: features paired with a known numberSupervisedPredict daily ice cream sales from temperature, rainfall, windspeed
Classification (binary)One of two mutually exclusive classes (true/false)Yes: features paired with a known classSupervisedPredict whether a bank customer will default on a loan
Classification (multiclass)One label out of several possible classesYes: features paired with a known classSupervisedPredict the penguin species (Adelie, Gentoo, or Chinstrap)
ClusteringGroup membership discovered from the dataNo: features only, no known labelsUnsupervisedSegment similar customers by demographics and purchasing behavior

Decision tree

Training data has known labels? Yes (supervised) No (unsupervised) Predict a number or a category? Clustering group by feature similarity Number Category Regression predicts a numeric value Two classes or several? Two Several Binary classification one of two classes (true/false) Multiclass classification one label of several classes Regression & classification are supervised (need labels); clustering is unsupervised

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
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
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
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.

1 question tests this
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.

2 questions test this
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
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.

2 questions test this
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
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
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
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
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

Also tested in

References

  1. Fundamentals of machine learning: Types of machine learning
  2. Fundamentals of machine learning: Regression
  3. Fundamentals of machine learning: Binary classification
  4. Fundamentals of machine learning: Multiclass classification
  5. Fundamentals of machine learning: Clustering
  6. Fundamentals of machine learning: Deep learning