Rana Maninder Singh
Lesson 7 of 12Cloud Data & AI Engineering

Azure Machine Learning

Lesson opener

In one line: A training job writes a model into the workspace. It does not put that model on an endpoint until you deploy it.

Why it matters: Northline trains a model to flag stock rows that look incomplete. The experiment chart looks fine. The warehouse screen never calls it, because nobody created an endpoint. A second model was trained on raw files that included the empty extract. Figures are illustrative. They are not an accuracy target.

Before this lesson: You can point at a curated path that passed a row-count gate.

What you will be able to do

Prerequisites

Lessons 3 to 6. You will not create a workspace in the practice.

What the workspace holds

Azure Machine Learning is the service for training, tracking, and deploying models (https://learn.microsoft.com/en-us/azure/machine-learning/overview-what-is-azure-machine-learning). This course uses these parts:

A metric without a dataset version is not a result you can defend. Northline stores the curated path and the row count next to the metric.

def accept_model(trained_on, metric, metric_floor, deployed):
    if trained_on != "curated":
        return "reject-data"
    if metric < metric_floor:
        return "reject-metric"
    if not deployed:
        return "trained-only"
    return "serving"

assert accept_model("raw", 0.9, 0.8, True) == "reject-data"
assert accept_model("curated", 0.7, 0.8, False) == "reject-metric"
assert accept_model("curated", 0.9, 0.8, False) == "trained-only"
assert accept_model("curated", 0.9, 0.8, True) == "serving"

The floor 0.8 is Northline's illustrative gate for this exercise. It is not a product default and not a promise of business value.

Teacher walkthrough: incomplete stock rows

All figures are illustrative.

  1. The data asset is curated/stock/2026-09-30/, 100 rows, matching the factory gate.
  2. The job trains a classifier and records the metric on a held-out part of that same curated set. The split is written down so a second person can see which rows were held out.
  3. The metric is above the floor, so the job may register model version 3. It does not create an endpoint.
  4. Validation: the registered model's tags include the curated path and the row count. The endpoint list does not yet include this model. A scoring call is not expected to succeed.

A second workplace case

A forecast of next week's fastener demand is trained on raw/stock/, including a zero-row file from a failed copy. The metric looks stable because many days were fine. One empty day teaches the model that FX-100 sometimes has no row at all. The fix is the data asset, not a larger cluster. Curated data, after the count gate, is the input.

Failure example: the model that never scored

Symptom: The team tells purchasing "AI is live." Purchasing still uses the spreadsheet. The workspace shows a successful job and no online endpoint.

Diagnosis: Training finished. Deployment did not start. The root cause is a collapsed word: "done" meant the job, and the audience heard "the screen calls it."

Correction: Say "registered, not deployed" until an endpoint exists and a test SKU returns a score. Only then may a named application call it. The warehouse system remains the system of record for on-hand quantity. The model flags rows. It does not change the count.

Validation: A test call to the endpoint returns a score for FX-100. The job page alone is not that test. The on-hand number on the warehouse screen is unchanged by the score.

Guided practice: accept or stop

Scenario: A job reports a metric of 0.91. The data asset path is raw/stock/. No endpoint exists. The team's floor is 0.80. Figures are illustrative.

Hints:

Complete solution:

accept_model returns reject-data because the path is raw. The metric is not considered a pass. Do not deploy. Point the data asset at curated data that passed the count gate, rerun, and only then compare the metric with 0.80. Tell purchasing the model is not in the process. Do not say it is live.

Independent practice

Write the acceptance line for a model you would actually use.

Acceptance criteria:

Common mistakes

  • Training on raw files because they are easier to find.
  • Treating a metric screenshot as a registered model.
  • Turning on an endpoint and letting it overwrite on-hand quantity.
  • Copying a sample accuracy as if it were Northline's result.

Quick check

  1. What is a workspace?
  2. Does a successful training job create an endpoint by itself?
  3. Why reject a model trained on raw/?
  4. What does "trained-only" mean in the sample function?
  5. What test proves the model is serving?

Answers:

  1. The Azure Machine Learning container for data, jobs, models, and endpoints.
  2. No. Deployment is a separate step.
  3. Raw can include failed extracts. Curated is the set that passed the count gate.
  4. The data and metric passed, and no deployment has been done.
  5. A call to the endpoint that returns a score. The job page is not that call.

Quiz alignment

The quiz asks you to separate training, registration, and deployment, and to reject raw training data even when the metric looks high.

Lesson summary

The workspace tracks data, jobs, and models. Curated input, a written floor, and a registered version come before any endpoint. Serving is a deployment. The model does not become the system of record for the quantity it scores.

Bridge to the next lesson

The next lesson packages a scoring API as a container and decides when Azure Kubernetes Service is the right place to run it. Bring the endpoint idea. You will see it is still not the same as a cluster.