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
- Name a workspace, a data asset, a job, a registered model, and an endpoint.
- Refuse raw extracts as training input when curated data exists.
- Gate a model on a check you can recompute, not on a screenshot.
- Keep training and deployment as two steps.
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 workspace is the container for the machine learning work.
- A data asset names a set of files or tables the job should read. Point it at curated data, with the
as_ofyou intend. - A job (an experiment run) trains or evaluates. The run records parameters and metrics.
- A registered model is a named, versioned model in the workspace. Training does not register itself unless the job does that step.
- An online endpoint is a deployment target for real-time scoring. Creating it is a separate step from training (
https://learn.microsoft.com/en-us/azure/machine-learning/concept-endpoints-online).
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.
- The data asset is
curated/stock/2026-09-30/, 100 rows, matching the factory gate. - 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.
- The metric is above the floor, so the job may register model version 3. It does not create an endpoint.
- 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:
- Which check fails first?
- Does a high metric repair the path?
- What may you tell purchasing?
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:
- You name the curated input and the row count.
- You name a metric and a floor you chose, marked as your choice.
- You say whether the model is registered, deployed, or neither.
- You name the system of record the model must not overwrite.
- You name the test call that proves deployment, which is not the job status.
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
- What is a workspace?
- Does a successful training job create an endpoint by itself?
- Why reject a model trained on
raw/? - What does "trained-only" mean in the sample function?
- What test proves the model is serving?
Answers:
- The Azure Machine Learning container for data, jobs, models, and endpoints.
- No. Deployment is a separate step.
- Raw can include failed extracts. Curated is the set that passed the count gate.
- The data and metric passed, and no deployment has been done.
- 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.