ML in Practice — Lightweight MLOps
Back to From Notebook to Production: The Mental Model

Reproducibility — Data, Code, Environment, Seed

Four things that determine whether someone else can reproduce your model. Lock all four. FIND_VIDEO: search 'reproducibility machine learning experiments' — recommended channel: Made with ML / DVC. Aim for 10 min or under.

20 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Experiment Tracking Overview — Covers the core motivations for tracking parameters, metrics, and artifacts across machine learning runs.
  2. MLflow Structural Hierarchy — Explains the relationship between experiments, individual runs, and registered models across interaction interfaces.
  3. Logging Functions & Storage — Compares manual parameter logging against automated capture and reviews storage architectures.
  4. Model Querying & Checkpointing — Discusses metric search filtering, training checkpoint capture, and remote tracking configurations.
  5. Launching Tracking Server — Demonstrates initializing a standalone Gunicorn-backed MLflow tracking server via the CLI.
  6. Schema Signature Setup — Walks through tracking URI binding, dataset preparation, and the role of schema inference.
  7. Reproducible Pipeline Configuration — Details deterministic estimator instantiation with fixed random states and explicit hyperparameter sets.
  8. Model Logging and Registration — Executes an atomic run context to record metrics, serialize model signatures, and register the artifact.
PDF notes

Frequently asked questions

What happens if I do not specify mlflow.set_tracking_uri?

MLflow defaults to logging metadata and artifacts locally to a newly created ./mlruns folder in your working directory.

Why should I use infer_signature instead of manual schema definitions?

infer_signature automatically derives correct column types and shapes directly from your training arrays and predictions, eliminating manual specification mistakes.

How does the MLflow Model Registry differ from logged run artifacts?

Run artifacts store raw training outputs for a specific run, whereas the Model Registry provides formal governance, stage tracking, and versioning across all runs.

Can I log evaluation metrics over multiple training iterations or epochs?

Yes, calling mlflow.log_metric repeatedly with the same metric key records a complete metric history over training steps.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.