From a notebook prediction to an operating service
A notebook can prove that a model can learn from a saved dataset. It does not prove that tomorrow's data will have the same columns, that the correct feature values will be available during a live request, or that a failed release can be rolled back safely. AI engineering turns that promising calculation into an operating system around the model.
Throughout this curriculum we will follow a customer-churn service. The business wants to identify customers who may cancel in the next 30 days so a retention team can offer help. The model is useful only when fresh customer data reaches it consistently, its prediction is delivered to the right workflow, and later outcomes reveal whether the intervention worked.
MLOps is the set of engineering practices that makes the model lifecycle repeatable, testable, observable, and governed. AI engineering is broader product work: it connects models, data, software, people, and operating constraints into a useful AI capability. The names overlap in practice; the responsibilities matter more than the job title.
What You Will Be Able to Explain
- Explain why model accuracy is only one production requirement
- Trace data from ingestion to a monitored prediction
- Distinguish data engineering, ML engineering, MLOps, and AI engineering
- Recognize the three planes of a production ML system
- Use the churn example to identify ownership and hand-offs
The vocabulary of a production ML system
These terms name different responsibilities. Read the meaning before following them through the diagrams and worked example.
Core vocabulary
The model is one component in a feedback system
For churn prediction, raw billing, product-usage, and support events first enter the data plane. Contracts check column names, types, ranges, timestamps, and duplicates before approved transformations calculate features such as monthly_spend and orders_last_30_days.
The training plane joins historical features to known churn outcomes, trains candidate models, compares both predictive and operational metrics, and stores an immutable artifact. A registry records which candidate was reviewed and which version is allowed to serve—not merely where a file was saved.
The serving plane obtains the same approved feature meanings, runs the production artifact, applies a decision policy, and records the prediction. Monitoring connects service health, input changes, prediction behaviour, and delayed churn outcomes. That evidence may justify a new training run, but it never bypasses evaluation and release gates.
Three connected planes of production ML
Where do data, model-management, and live-serving responsibilities meet?
Governance crosses all three planes. It answers who owns the system, which data may be used, who can approve a model, which versions affected a decision, and who can stop or roll back the service during an incident.
From a notebook result to an operating prediction system
What must surround a trained model before people can rely on it?
Notebook prototype versus production AI system
Responsibilities overlap, but each lens asks a useful question
Worked Example: Follow customer C17 from event to feedback
Given: Customer C17 has falling weekly usage, two recent support tickets, and an upcoming renewal. The current production artifact is churn-model v12.
- Validated source events create feature-set v4 for C17; the records keep event timestamps and source versions.
- The online service retrieves those approved values and model v12 returns churn probability 0.76.
- A reviewed business rule sends probabilities at or above 0.70 to the retention queue. The threshold is a product decision, not a fact learned by the model.
- The system records request ID, feature-set v4, model v12, probability 0.76, threshold 0.70, and the resulting action.
- Thirty days later the observed churn outcome is joined to the earlier prediction by customer and prediction time. It becomes monitoring evidence and, after point-in-time checks, possible training data.
Result and interpretation: The prediction is reproducible because its data, feature, model, and policy versions are recorded. The business can now ask whether v12 helped customers like C17 rather than merely whether the endpoint returned HTTP 200.
Record the model, features and decision policy in code
The label above each block states what it is. Runnable Python can be executed as shown with the standard library; pseudocode and configuration communicate architecture and require adaptation to a real platform.
Represent a prediction contract
A production contract travels with the artifact. The values below are examples chosen by the team; they are not universal defaults.
model_version: churn-v12
feature_set_version: churn-features-v4
input_schema: churn-request-v3
output:
probability: number_between_0_and_1
decision_threshold: 0.70
owners:
model: retention-ml-team
service: customer-platform
rollback_target: churn-v11Decide who owns each part of the production loop
- Start with the decision and user workflow, then choose the simplest model and serving mode that meet it.
- Assign ownership for every plane and every cross-plane contract; shared responsibility must not mean missing responsibility.
- Version data, features, code, environment, artifact, and decision policy together so an outcome can be reconstructed.
- Treat evaluation, release, monitoring, and rollback as product requirements before the first deployment.
Failure Analysis and Recovery
Observed failure → likely cause → controlled response
Connect to Earlier Lessons
- ML lifecycle
Review the learning-stage lifecycle before adding production controls.
- Customer churn project
See the modelling workflow that becomes this curriculum's running service.
- Saving and deploying deep models
Compare general production concerns with neural-network artifact handling.
Summary / Key Takeaways
- A good notebook result is evidence for a model idea, not proof of a reliable production system.
- Production quality depends on data, features, software, release controls, monitoring, people, and governance as well as accuracy.
- The data/feature, training/model-management, and serving/monitoring planes exchange versioned contracts and artifacts.
- AI engineering connects the whole product; MLOps makes the model lifecycle repeatable, testable, observable, and governable.
- A registry governs approved model versions and rollback state rather than acting as an ordinary file folder.
- Monitoring closes the loop by connecting service, data, predictions, delayed outcomes, and business effect.
- The churn example is reproducible only when data, feature, model, threshold, action, and outcome versions remain traceable.