All exams← All Azure AI Fundamentals (AI-900) notes

Machine learning fundamentals: Azure AI Fundamentals (AI-900) revision notes

Revision notes

What machine learning actually is

Machine learning (ML) is a subset of AI where a model learns patterns from data instead of being explicitly programmed with rules. The model is trained on historical data, then used to make predictions on new data. In Azure, the core service for building ML models is Azure Machine Learning (Azure ML), accessed via Azure ML Studio.

The core ML workflow

Every ML project follows roughly the same steps: collect and prepare data, split it into training and validation (test) datasets, select an algorithm, train the model, evaluate its performance with metrics, then deploy it as an endpoint others can call. A common mistake is evaluating a model on the same data it was trained on - this gives falsely high accuracy, which is why a held-out test set matters.

Types of machine learning

  • Supervised learning: trains on labelled data (inputs plus known correct outputs). Covers regression (predicting a numeric value, eg house price) and classification (predicting a category, eg spam or not spam).
  • Unsupervised learning: trains on unlabelled data to find structure, most commonly clustering (grouping similar items, eg customer segments).
  • Reinforcement learning: an agent learns by trial and error, receiving rewards or penalties for actions taken in an environment.

Features and labels

A feature is an input variable used to make a prediction (eg square footage). A label is the known output value used in supervised training (eg the actual sale price). The exam expects you to identify which is which in a scenario.

Key evaluation metrics

  • Regression: uses metrics like MAE (mean absolute error) and RMSE (root mean squared error) - lower is better for both.
  • Classification: uses accuracy, precision, recall, and a confusion matrix that shows true/false positives and negatives.
  • Clustering: no labels to check against, so metrics judge how tight and separated the clusters are.

Azure Machine Learning Studio tools

Azure ML Studio offers a no-code Designer (drag-and-drop pipelines), Automated ML (AutoML, which automatically tries multiple algorithms and picks the best), and Notebooks for full code control using Python SDK. AutoML is the go-to answer for 'build a model quickly with minimal code'.

Common mistakes to avoid

  • Confusing classification (categories) with regression (numbers) - a very common trick in exam scenarios.
  • Forgetting that clustering is unsupervised - there is no 'correct answer' label to train against.
  • Thinking Azure ML Studio requires coding - Designer and AutoML are code-free.
  • Mixing up training data (used to build the model) with validation/test data (used to check it works on unseen data).

Key facts

Flashcards

What is the difference between supervised and unsupervised learning?
Supervised learning trains on labelled data (known outputs); unsupervised learning trains on unlabelled data to find structure, such as clustering.
tap to reveal
What type of ML task predicts a continuous numeric value?
Regression.
tap to reveal
What type of ML task predicts a discrete category?
Classification.
tap to reveal
What is a feature in machine learning?
An input variable used to make a prediction, eg square footage of a house.
tap to reveal
What is a label in machine learning?
The known correct output value used to train a supervised model, eg the actual sale price.
tap to reveal
Why must you evaluate a model on separate test data, not training data?
Because testing on training data gives falsely high accuracy and does not reflect real-world performance.
tap to reveal
What is clustering an example of?
Unsupervised learning - grouping similar unlabelled data points, eg customer segments.
tap to reveal
What does Automated ML (AutoML) in Azure do?
Automatically trains and tests multiple algorithms on your data and selects the best-performing model, with minimal code.
tap to reveal
What no-code tool in Azure ML Studio lets you build pipelines by dragging and dropping?
The Designer.
tap to reveal
Name two common regression evaluation metrics.
MAE (mean absolute error) and RMSE (root mean squared error) - lower values are better.
tap to reveal
Name two common classification evaluation metrics.
Accuracy and precision (also recall, and the confusion matrix).
tap to reveal
What does a confusion matrix show?
The counts of true positives, true negatives, false positives and false negatives for a classification model.
tap to reveal
How does reinforcement learning work?
An agent learns by trial and error, receiving rewards or penalties for actions taken in an environment.
tap to reveal
Which Azure ML Studio tool gives full code control using Python?
Notebooks, via the Azure ML Python SDK.
tap to reveal
Practice questions

Machine learning fundamentals: 5 practice questions

Q1. Which type of machine learning uses labelled data, where each training example includes both input features and a known correct output?
  • A.  Semi-structured learning
  • B.  Supervised learning
  • C.  Unsupervised learning
  • D.  Reinforcement learning
Show answer & explanation
✓ Answer: B. Supervised learning
Supervised learning trains a model on data where the correct output (label) is already known, so the algorithm learns the mapping from inputs to outputs. Unsupervised learning uses unlabelled data to find structure, and reinforcement learning learns through reward signals from actions rather than labelled examples.
Q2. A retailer wants to group customers into segments based on purchasing behaviour, without any predefined categories. Which type of machine learning is most appropriate?
  • A.  Clustering
  • B.  Classification
  • C.  Reinforcement learning
  • D.  Regression
Show answer & explanation
✓ Answer: A. Clustering
Clustering is an unsupervised technique that groups similar data points together based on shared characteristics, without needing predefined labels. Regression and classification are supervised techniques requiring labelled outcomes, and reinforcement learning is based on trial-and-error reward maximisation.
Q3. In machine learning, what is a 'label' in a training dataset?
  • A.  A unique identifier for each row in the dataset
  • B.  The known outcome or value that a supervised model is trained to predict
  • C.  A description of the algorithm used to train the model
  • D.  A category of hyperparameter used during training
Show answer & explanation
✓ Answer: B. The known outcome or value that a supervised model is trained to predict
The label is the known, correct answer associated with each row of training data in supervised learning, such as a house price or a 'spam/not spam' tag. Features are the input variables used to predict the label, not the label itself.
Q4. Which machine learning task would be used to predict the exact sale price of a house based on its size, location, and age?
  • A.  Regression
  • B.  Clustering
  • C.  Classification
  • D.  Anomaly detection
Show answer & explanation
✓ Answer: A. Regression
Regression predicts a continuous numeric value, such as a price, making it suitable for house price prediction. Classification predicts a discrete category (like 'expensive' vs 'affordable'), while clustering and anomaly detection do not use labelled target values.
Q5. Which machine learning task would be used to determine whether an email is 'spam' or 'not spam'?
  • A.  Dimensionality reduction
  • B.  Classification
  • C.  Clustering
  • D.  Regression
Show answer & explanation
✓ Answer: B. Classification
Classification assigns input data to one of a set of discrete categories, such as spam or not spam. Regression predicts continuous numeric values, and clustering groups data without predefined categories or labels.
Test yourself
See the Azure AI Fundamentals (AI-900) page

More Azure AI Fundamentals (AI-900) topics