pip install -r requirements.txtRun the included classification pipeline:
python -m src.pipeline_runner --config pipelines/classification_pipeline.yaml --verboseThis will:
1. Generate a demo dataset (2000 rows with age, income, region, etc.)
2. Apply feature engineering (scaling, encoding, imputation)
3. Train a Random Forest classifier
4. Evaluate with accuracy, F1, and AUC threshold gates
5. Attempt a canary deployment (dry-run — no actual infrastructure)
6. Save all artifacts to ./artifacts/
After the run completes, check:
./artifacts//run_summary.json — full run metadata./artifacts//snapshot.json — reproducibility snapshot1. Copy pipelines/classification_pipeline.yaml to pipelines/my_pipeline.yaml
2. Update the feature_engineering stage to match your columns
3. Adjust the training hyperparameters
4. Set meaningful threshold_gates in the evaluation stage
5. Configure your deployment endpoint in the deployment stage
Create a function with this signature and register it:
from src.pipeline_runner import register_stage
def my_custom_stage(params: dict, context: dict) -> dict:
# Do your work here
result = {"my_output": "some_value"}
return result
register_stage("my_custom_stage", my_custom_stage)Then reference it in your pipeline YAML:
stages:
- name: my_custom_stage
depends_on: [feature_engineering]
params:
my_param: my_valueGet the full MLOps Pipeline Templates and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.