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