agentleFS
kienbui1995kienbui1995/magic-powers/skills/ml-experiment-tracking/SKILL.md

ml-experiment-tracking

Skill0 starsChanged 8 months agoMITView on GitHub

Use when managing ML experiments, ensuring reproducibility, or comparing model runs

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When training models and need to compare runs, reproduce results, or share findings with the team.

    line 9
  2. Distinctive:

    Use MLflow, W&B, or DVC. Log per experiment:

    line 14
  3. Distinctive:

    Use DVC or S3 versioning

    line 32
  4. Distinctive:

    Never train on "latest" — always a specific version

    line 33
  5. Distinctive:

    Use Docker or conda envs with pinned versions

    line 38
  6. Distinctive:

    Don't compare metrics in isolation — look at training curves

    line 42
  7. Distinctive:

    Check for overfitting (train vs val gap)

    line 43
  8. Distinctive:

    Document why you chose the winner

    line 45
  9. Distinctive:

    No seed → can't reproduce results

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ML Experiment Tracking

When to Use

When training models and need to compare runs, reproduce results, or share findings with the team.

Core Jobs

1. Track Every Run

Use MLflow, W&B, or DVC. Log per experiment:

  • Parameters: hyperparameters, data version, preprocessing config
  • Metrics: loss, accuracy, precision/recall/F1, AUC
  • Artifacts: model weights, feature importance plots, confusion matrix
  • Environment: Python version, library versions, hardware
import mlflow

with mlflow.start_run():
    mlflow.log_param("learning_rate", 0.01)
    mlflow.log_param("max_depth", 5)
    mlflow.log_metric("val_accuracy", 0.92)
    mlflow.log_artifact("model.pkl")

2. Version Your Data

  • Pin dataset version alongside each experiment
  • Use DVC or S3 versioning
  • Never train on "latest" — always a specific version

3. Make Experiments Reproducible

  • Set random seeds (torch.manual_seed, np.random.seed)
  • Record hardware (GPU model affects float precision)
  • Use Docker or conda envs with pinned versions
  • Log git commit hash with each run

4. Compare and Select

  • Don't compare metrics in isolation — look at training curves
  • Check for overfitting (train vs val gap)
  • Compare on holdout test set only once (before that: val set)
  • Document why you chose the winner

Key Outputs

  • Experiment tracking setup (MLflow/W&B config)
  • Run comparison report
  • Model selection rationale
  • Reproducibility checklist

Anti-Patterns

  • Training without logging parameters
  • Comparing models trained on different data versions
  • Evaluating on test set during model selection (data leakage)
  • No seed → can't reproduce results

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.