Deeper walkthroughRead Batch vs API Inference as a mechanism, not a recipe
Treat this as a sequence of observable decisions rather than one opaque command. Stage 1: Persist the fitted preprocessing + model together. Stage 2: Define an inference contract: schema, feature order/types and output meaning. Stage 3: Monitor input drift, prediction distribution, data quality and delayed performance where labels arrive later. Final checkpoint: Define retraining triggers, approval checks and rollback/versioning rather than retraining automatically on every change.
MechanismFollow the transformation
Persist the fitted preprocessing + model together.
Define an inference contract: schema, feature order/types and output meaning.
Monitor input drift, prediction distribution, data quality and delayed performance where labels arrive later.
EvidenceKnow what would convince you
- Reload the packaged pipeline in a fresh process/environment and reproduce known predictions.
- Validate the inference schema and feature order on both valid and deliberately invalid requests/batches.