Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Plans reproducible ML experiments, tracking parameters, metrics, model versions and run comparisons with MLflow or Weights & Biases.
Use this skill ↓43% 57%+13 ptsof test cases passed
Passed 13 of 23 test cases with the skill, and 10 of 23 without it.
Write a Python function to log final evaluation metrics and model artifacts at the end of a training run in MLflow. Metrics should be distinct from intermediate epoch logs.
Calls log_artifact with model path when model_path argument is provided
3 of 3 safety checks passed
A skill for planning, executing, and tracking machine learning experiments with full reproducibility. Covers experiment design, hyperparameter management, metric logging, model versioning, and comparison across runs to support rigorous ML research.
Machine learning research involves running dozens or hundreds of experiments with varying architectures, hyperparameters, data splits, and preprocessing pipelines. Without systematic tracking, it becomes impossible to reproduce results, compare configurations, or identify which changes actually improved performance. This skill provides a structured methodology for experiment management that aligns with academic standards for reproducible ML research.
The approach is framework-agnostic but demonstrates integration with MLflow, Weights & Biases, and plain file-based logging. It emphasizes the practices needed for publications: complete hyperparameter documentation, statistical significance testing across runs, and artifact management for model checkpoints and evaluation outputs.
Before writing any training code, document the experiment plan:
# experiment_plan.yaml
experiment:
name: "transformer-sentiment-analysis-v3"
hypothesis: "Adding relative positional encoding improves F1 on long reviews (>512 tokens)"
dataset:
name: "imdb-extended"
version: "2025.1"
splits: {train: 0.8, val: 0.1, test: 0.1}
stratify_by: "label"
random_seed: 42
baselines:
- name: "bert-base-uncased"
checkpoint: "bert-base-uncased"
- name: "roberta-base"
checkpoint: "roberta-base"
variables:
independent:
- positional_encoding: ["absolute", "relative", "rotary"]
controlled:
- learning_rate: 2e-5
- batch_size: 32
Next to this one in the catalogue, plus more from the same author.