Quiz 2

MLOps Lifecycle & CRISP-ML Framework

613 words
3 min read
Python Week 1: the first filter for runtime behavior
Visual companion
Python
Type and operator map

Python Week 1: the first filter for runtime behavior

View
Revision summary

What this note is really saying

Short form

# MLOps Lifecycle & CRISP-ML Framework ## 🎯 Learning Objectives - Understand the CRISP-ML framework for ML projects - Identify the stages of the ML lifecycle - Distinguish between MLOps maturity levels - Recognize key stakeholders and their roles ## 📋 Prerequisites - Basic understanding of ML model development - S...

MLOps Lifecycle & CRISP-ML Framework

🎯 Learning Objectives

  • Understand the CRISP-ML framework for ML projects
  • Identify the stages of the ML lifecycle
  • Distinguish between MLOps maturity levels
  • Recognize key stakeholders and their roles

📋 Prerequisites

  • Basic understanding of ML model development
  • Software engineering concepts

1. 📖 Core Content

1.1 What is MLOps?

MLOps (Machine Learning Operations) is the practice of combining ML model development (Dev) with ML system deployment and operations (Ops). It aims to:
  1. Standardize: Create reproducible ML pipelines
  2. Automate: Reduce manual handoffs between teams
  3. Monitor: Track model performance in production
  4. Govern: Manage model versions, access, and compliance

1.2 CRISP-ML Framework

(Diagram)
StageActivitiesDeliverables
Business UnderstandingDefine objectives, success criteriaProject charter, KPIs
Data AcquisitionCollect, label, source dataDataset, data catalog
Data PreparationClean, transform, split, versionFeature engineering, DVC
Model DevelopmentTrain, tune, track experimentsMLflow runs, model artifacts
Model EvaluationValidate, test, fairness checkEvaluation report, model card
DeploymentContainerize, serve, A/B testAPI endpoint, docker image
MonitoringTrack drift, performance, alertsDashboard, pager rotation

1.3 MLOps Maturity Levels

LevelNameCharacteristics
0No MLOpsManual, no tracking, research-only
1DevOps but no MLOpsCI/CD for code, manual data/model
2Automated TrainingAutomated data pipeline + model training
3Automated DeploymentAutomated model deployment + A/B testing
4Full MLOpsEnd-to-end automation, monitoring, retraining

1.4 Key Stakeholders

StakeholderRoleConcerns
Data ScientistBuild modelsModel accuracy, features
ML EngineerDeploy & scaleLatency, throughput, reliability
Data EngineerData pipelinesData quality, freshness, volume
DevOps EngineerInfrastructureUptime, scalability, cost
Product ManagerRequirementsBusiness value, user impact
Compliance OfficerGovernanceFairness, privacy, audit trail

📝 Practice Questions

Q1
<strong>Q1</strong>: What's the difference between traditional DevOps and MLOps?
AspectDevOpsMLOps
ArtifactsCode, binariesModels, data, hyperparameters
TestingUnit tests, integrationData validation, model eval
DriftN/AData drift, concept drift
ReproducibilityDeterministicNon-deterministic (training)
VersioningCode onlyCode + Data + Model
MLOps extends DevOps to handle the unique challenges of ML: data dependencies, model evaluation, and ongoing monitoring. Q2
<strong>Q2</strong>: At MLOps maturity level 0, a data scientist trains a model and sends the file to an engineer for deployment. List three problems this causes.
  1. Reproducibility: No record of training data version, hyperparameters, or environment → hard to debug or retrain
  2. Manual handoff: Emailing files, forgetting dependencies, dependency hell
  3. No monitoring: Model behavior in production is unknown → silent degradation
  4. Version conflicts: Multiple models, no tracking of which is deployed where
  5. Rollback difficulty: Can't easily revert to previous model version
These problems are why organizations invest in MLOps infrastructure. Q3
<strong>Q3
<strong>Q3</strong>: A model that predicts customer churn has 85% accuracy in testing but 72% in production. What could go wrong?
Possible causes:
  1. Data drift: Customer behavior changed (seasonal, economic, etc.)
  2. Training-serving skew: Different preprocessing in training vs production
  3. Concept drift: The relationship between features and churn changed
  4. Sampling bias: Training data wasn't representative of production data
  5. Feature staleness: Some features aren't available in real-time
This is why monitoring is essential — without it, you wouldn't detect the 13% accuracy drop. Q4
<strong>Q4
<strong>Q4
<strong>Q4</strong>: At minimum, what should a team at maturity level 1 implement?
At level 1 (DevOps but no MLOps):
  1. Git: Version control for all code
  2. CI/CD pipeline: Automated testing and deployment of code changes
  3. Environment standardization: Docker or conda for reproducible environments
  4. Basic artifact storage: Save model files with timestamps
Even without full MLOps automation, these practices ensure code quality and deployment reliability. The next step is adding data and model versioning.
</details> * * * ## 🔗 Cross-References - **Next**: [Experiment Tracking](/notes/04-degree-electives-bsda5014-mlops-week02-02-experiment-tracking) - **Video**: BSDA5014 Week 1 transcripts [Join Discord](https://discord.gg/gE2m4Qrdqv) [Next**Experiment Tracking**](/notes/04-degree-electives-bsda5014-mlops-week02-02-experiment-tracking)
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.