experiment-tracking-patterns
Installation
SKILL.md
Experiment Tracking Patterns
Expert patterns for MLflow, W&B, Optuna hyperparameter search, and experiment organization at scale.
Pattern 1: MLflow Manual Logging
Complete MLflow run with params, metrics, artifacts, and model signature.
import mlflow
import mlflow.pytorch
from mlflow.models import infer_signature
import torch
import numpy as np
# Set tracking URI (local or server)
mlflow.set_tracking_uri("http://mlflow-server:5000") # or "mlite:///mlflow.db" for local SQLite
mlflow.set_experiment("sentiment-classification")