experiment-log
БесплатноЗапускает вложенные скриптыНе проверенRecord a model training run — log parameters, metrics, and artifact paths, then append a structured row to the experiments ledger. Use when a training run…
от zakelfassi★ 18 звёзд на GitHubОб этом скилле
Experiment Log
Record a training run's parameters, metrics, and artifact paths in the experiments ledger.
Inputs
- Experiment name (e.g.,
churn-v3-lgbm) - Run ID (auto-generated if omitted:
{name}-{YYYYMMDD-HHmmss}) - Parameters (key-value pairs, e.g.,
learning_rate=0.05 n_estimators=500) - Metrics (key-value pairs, e.g.,
auc=0.83 f1=0.71 precision=0.79 recall=0.64) - Artifact path (model checkpoint, serialized pipeline, etc.)
- Notes (free-form, optional)
Steps
Collect run metadata
import datetime, hashlib, json, os run_id = "{name}-" + datetime.datetime.utcnow().strftime("%Y%m%d-%H%M%S") git_sha = os.popen("git rev-parse --short HEAD").read().strip() dataset_version = open("data/.version").read().strip() # semver or hashCapture parameters and metrics If using a training script that outputs JSON:
python train.py --config config/{name}.yaml --output-metrics /tmp/metrics.jsonOtherwise, capture values directly from the trainer object:
params = model.get_params() metrics = {"auc": roc_auc_score(y_test, y_pred), "f1": f1_score(y_test, y_pred)}Save artifacts
import joblib artifact_path = f"artifacts/{run_id}/model.pkl" os.makedirs(os.path.dirname(artifact_path), exist_ok=True) joblib.dump(model, artifact_path)Append to the experiments ledger
scripts/log-experiment.sh \ --name "{name}" \ --run-id "{run_id}" \ --params '{"learning_rate": 0.05}' \ --metrics '{"auc": 0.83, "f1": 0.71}' \ --artifact "{artifact_path}" \ --notes "{notes}"The ledger is
experiments/log.csv— a flat CSV with one row per run.Verify the entry
tail -n 5 experiments/log.csvConfirm: run_id is unique, metrics are numeric, artifact path exists.
Compare with previous runs (optional)
python scripts/compare-runs.py --metric auc --top 5Promote if best (invoke
pipeline-stageskill to wire the new model into serving) Only promote after peer review of the metrics and a sanity-check on the holdout set.
Conventions
- Ledger location:
experiments/log.csv— never delete rows; mark superseded runs withstatus=superseded - Artifact naming:
artifacts/{run_id}/— one directory per run - Required fields:
run_id,experiment_name,timestamp,git_sha,auc(or primary metric),artifact_path - All metrics are floats; parameters are JSON strings
- Every run references the dataset version it trained on (
dataset_versioncolumn)
Edge Cases
- Duplicate run_id: Append a counter suffix (
-2,-3) rather than overwriting; log a warning. - Training failed mid-run: Log the entry with
status=failedand the error message innotes; don't leave the ledger entry absent. - Very large artifact: Store only the path; add a
artifact_size_mbcolumn for reference. - Remote artifact store (S3/GCS): Use the full URI as
artifact_path; the log script accepts both local paths and URIs.
Установить experiment-log в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл experiment-log?
Record a model training run — log parameters, metrics, and artifact paths, then append a structured row to the experiments ledger. Use when a training run completes, when asked to "log this experiment", or when comparing runs to decide which model to promote.
Как установить скилл experiment-log?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл experiment-log запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic