How master1039/azure-mlopspython works
Project Type & Purpose
• This is an MLOps reference implementation that demonstrates how to build a full end-to-end CI/CD pipeline for a machine-learning workflow using Azure DevOps and Azure Machine Learning.
• Key goals:
• Automate data validation, model training (Python & R), model evaluation and selection.
• Automate model registration and versioning in Azure ML.
• Automate real-time deployment (ACI/AKS) with canary and A/B testing via Helm and Istio.
• Use Infrastructure as Code (ARM/Terraform) for environment provisioning.
File-Structure Analysis & Architectural Patterns
• Top level:
• .pipelines: YAML templates for CI/CD pipelines in Azure DevOps (build, test, train, publish, deploy).
• environment_setup & bootstrap: IaC scripts (ARM, Terraform) and bootstrap scripts to provision Azure resources, Container Registry, Compute, Workspace.
• charts: Helm charts for deploying model services (Istio canary, A/B testing).
• data: Sample diabetes CSV files and data-validation tests.
• diabetes_regression: Core ML project: training code (Python/R), evaluation, registration, scoring scripts & configs (ACI/AKS deployment YAMLs).
• ml_service: Python SDK wrappers that orchestrate Azure ML Pipelines from DevOps tasks.
• Architectural patterns:
• CI/CD pipeline: Separation of build (lint, data tests, unit tests), train (AML pipeline submission), package/deploy (Docker image build, Helm).
• AML Pipeline: Modular steps—data validation → training → evaluation → registration → batch scoring.
• Micro-services: Real-time inference as containerized services on ACI/AKS.
• Canary/A-B: Service mesh (Istio) layered on Kubernetes for traffic splitting.