experiment-tracking
БесплатноБез исполняемых скриптовНе проверенInstrument Python ML and data scripts with ClearML Task experiment tracking, Logger reports, artifacts, configs, models, offline mode, and tracking validation.
от lza6★ 19 звёзд на GitHubОб этом скилле
ClearML Experiment Tracking
Use this sub-skill when a user asks to add, review, or troubleshoot ClearML experiment tracking in a Python script. It covers Task.init, TaskTypes, connected hyperparameters/configuration, Logger reports, artifacts, model metadata, framework auto-logging, offline mode, task reuse, output_uri, and static validation.
When To Use
- Retrofit a training/evaluation script with ClearML tracking while preserving existing
argparse, config files, framework logging, and model save paths. - Add explicit reports for scalars, text, images, tables, Plotly, Matplotlib, artifacts, or model metadata.
- Make a script work without credentials by using offline mode and later import the offline session.
- Diagnose missing metrics, duplicate task reuse, upload failures, bad
output_uri, or logger calls made beforeTask.init. - Validate a candidate script without importing the user code or contacting a ClearML server.
Route Elsewhere
- Use
../data-storage/SKILL.mdforDataset,StorageManager,clearml-data, dataset versioning, cache/download, and object-storage data movement. - Use
../remote-execution-cli/SKILL.mdforclearml-task,Task.create,Task.enqueue, agents, queues, Docker execution, and remote execution packaging. - Use
../automation-pipelines/SKILL.mdforPipelineController,PipelineDecorator, HPO, schedulers, triggers, and pipeline orchestration. - Use
../routers-services/SKILL.mdforTask.get_http_router(), service endpoints, FastAPI/router integration, and theclearml[router]extra.
Essential References
- Read
references/api-reference.mdfor verified tracking/reporting signatures, parameter notes, and method-selection guidance. - Read
references/workflows.mdfor concrete instrumentation recipes, logging examples, offline fallback, and validation flow. - Read
references/troubleshooting.mdfor symptoms, likely causes, and fixes across credentials, config, uploads, reuse, offline mode, framework auto-connect, and logger misuse. - Run
scripts/validate_tracking_script.py --helpto inspect a Python file statically for likely ClearML tracking issues.
Minimal Instrumentation Pattern
Place Task.init near the start of executable code, before training starts and before framework writers, plots, or model checkpoints are created.
from clearml import Task, TaskTypes
task = Task.init(
project_name="my-project",
task_name="train-model",
task_type=TaskTypes.training,
reuse_last_task_id=False,
output_uri=True,
)
Use reuse_last_task_id=False for most repeatable local training runs so previous outputs are not overwritten. Use continue_last_task=True only when intentionally appending to an existing task, and prefer an explicit reuse_last_task_id="<task-id>" when continuing a known task.
Connect Inputs
- Let
Task.init(auto_connect_arg_parser=True)capture common CLI parsers automatically, or pass a dictionary to include/exclude specific arguments. - Use
task.connect(params, name="General")for dictionaries,argparse.Namespace,TaskParameters, model objects, or simple config classes. - Use
task.connect_configuration(config_path_or_dict, name="train_config")before reading a JSON/YAML/config file so remote overrides can replace the file or dictionary. - Use
ignore_remote_overrides=Trueonconnectorconnect_configurationonly when the script must not accept UI/backend overrides.
Report Outputs
- Get a logger with
logger = task.get_logger()or, inside helper functions after initialization,Task.current_task().get_logger(). - Report scalar curves with
logger.report_scalar(title="train", series="loss", value=loss, iteration=step). - Report text with
logger.report_text("message"); stdout, stderr, and Python logging are also captured whenauto_connect_streams=True. - Report images/plots/tables with
report_image,report_matplotlib_figure,report_plotly, andreport_table. - Upload one-time artifacts with
task.upload_artifact(name="metrics", artifact_object=metrics, wait_on_upload=True)when later code depends on upload success. - Register a live pandas DataFrame with
task.register_artifact(...)only when dynamic synchronization is intended; otherwise preferupload_artifact.
Model Tracking
- Let framework auto-connect track supported model files when possible through
auto_connect_frameworks=Trueor a framework-specific mapping such as{"pytorch": ["*.pt", "*.pth"]}. - Use
OutputModel(task=task, name="model")when manually registering or uploading model weights. - Call
output_model.update_labels(labels)for class mappings andoutput_model.update_weights(weights_filename="model.pt")for local weights; useregister_uri="..."for an existing remote model URL. - Use
InputModel(model_id=...)orInputModel(name=..., project=...)for existing model inputs, then connect it withtask.connect(input_model, name="pretrained")if the task should reco
Установить experiment-tracking в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл experiment-tracking?
Instrument Python ML and data scripts with ClearML Task experiment tracking, Logger reports, artifacts, configs, models, offline mode, and tracking validation.
Как установить скилл experiment-tracking?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл experiment-tracking запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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