Follow these patterns when implementing MLOps features in OptAIC. Use for ML model definitions (5-component structure), model instances, training/inference pipelines, model registry, and monitoring...
Guide for implementing MLOps features that integrate with OptAIC's resource-based architecture.
Apply when:
MLModuleDef (Definition) ModelInstance (Config) Execution (Runs)
ββββββββββββββββββββββββ ββββββββββββββββββββββ βββββββββββββββββ
XGBSignalModelDef β SPX_Alpha_Model β TrainingRun
(5 code components) (datasets + config) InferenceRun
MonitoringRun
β
ModelVersion
| Category | Purpose | Typical Outputs |
|---|---|---|
| Signal Model | Generate alpha signals | Signal dataset [-1, 1] |
| Macro Regime Model | Classify market regimes | Regime labels/probabilities |
| Relevance Model | Score feature importance | Relevance scores |
| Signal Combining Model | Combine multiple signals | Combined signal |
| Signal Filtering Model | Filter/rank signals | Filtered signal set |
MLModelDef/
βββ model/ # Model architecture + hyperparameter schema
βββ training/ # Trainer + evaluator
βββ inference/ # Predictor + batch inference
βββ monitoring/ # Data drift + performance monitoring
βββ tests/ # Test suite for all components
βββ docs/ # Documentation
See references/mlmodule-structure.md.
Compose MLModuleDef + datasets + config. See references/model-instance.md.
See references/mlops-pipelines.md.
See references/model-registry.md.
Two views required:
See references/mlops-center-ui.md.
| Tool | Purpose | Mode |
|---|---|---|
| MLflow | Experiment tracking, model registry | Optional (--with-mlflow) |
| Evidently | Data drift, performance monitoring, test suites | Always available |
| WhyLogs | Lightweight data profiling | Optional |
| Prefect | Workflow orchestration | Optional (--with-prefect) |
optaic.mlops)All MLOps infrastructure is wrapped in a unified SDK for seamless development:
from optaic.mlops import tracking, registry, monitoring, pipeline
from optaic.mlops.base import BaseModel, BaseTrainer
from optaic.mlops.data import load_dataset
Key modules:
tracking - Experiment logging (wraps MLflow)registry - Model versioning (wraps MLflow Model Registry)monitoring - Drift & performance (wraps Evidently)pipeline - Orchestration (wraps Prefect)data - PIT-aware dataset accessbase - Base classes for model definitionsSee references/unified-sdk.md and Blueprint section 8.9.
optaic.mlops SDK patterns