MLOps#
Twiga ships a production layer that closes the loop between model development and real-world deployment. The four modules below form a coherent MLOps stack that mirrors Twiga’s config-driven, Pydantic-first design principles.
Modules#
Installation#
Install the full MLOps stack with a single extra:
pip install twiga[mlops]
This pulls in MLflow, FastAPI, uvicorn, Evidently, and Prefect.
At a glance#
Module |
Class / function |
Responsibility |
|---|---|---|
|
|
MLflow experiment tracking |
|
|
Persist model + pipeline with versioned manifest |
|
|
Restore model + pipeline from checkpoint |
|
|
FastAPI REST API factory |
|
|
Checkpoint to forecaster loader |
|
|
Evidently drift & performance reports |
|
|
Prefect training orchestration |
|
|
Drift-triggered retraining |