AGENT SKILL

configuration-and-experiments

Configure a MedicalDetectionToolkit experiment, inspect its CLI and fold lifecycle, onboard a bounded toy fixture, and diagnose configuration or experiment-directory failures without entering model internals or running training.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
configuration-and-experiments
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Configure a MedicalDetectionToolkit experiment, inspect its CLI and fold lifecycle, onboard a bounded toy fixture, and diagnose configuration or experiment-directory failures without entering model internals or running training.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Configuration and experiments

Use this node when the task is to turn a detector idea into a checked experiments/<name>/configs.py contract, choose a model and 2D/3D operating dimension, create or inspect an experiment directory, select folds, or prepare a small toy fixture. This repository is legacy and explicitly unmaintained; pin the checkout/package version before treating a configuration as reproducible. Do not start training, testing, analysis, or CUDA compilation while merely validating configuration. The bundled scripts are safe inspection/fixture helpers and do not import the source checkout.

Route by intent

  1. Need a config or model/dimension decision? Read configuration.md, then route detector-specific behavior to models-and-architectures and data shape/path behavior to data-and-preprocessing.
  2. Need an invocation or lifecycle decision? Read cli-reference.md and experiment-layout.md. Use inspect_cli.py to print or validate the bounded command contract without importing exec.py.
  3. Need toy onboarding? Read the toy section in experiment-layout.md and use generate_toy_fixture.py. It refuses to overwrite existing fixture files and has hard count, shape, and size caps. Adapt n_train_val_data in a copied config to the fixture count before attempting any framework workflow.
  4. A command/config fails? Read troubleshooting.md before changing paths or stored settings. Stop rather than silently switching folds, replacing a snapshot, or assuming a modern dependency is compatible.

Operating contract

  • A config module exposes a lowercase configs subclass with constructor configs(server_env=None). It sets self.model and self.dim, then calls DefaultConfigs.__init__(self, self.model, server_env, self.dim) before applying experiment-specific paths, data, schedule, and model settings.
  • Supported configuration labels evidenced by the experiment files are mrcnn, retina_net, retina_unet, detection_unet, ufrcnn, and in the shared default dispatch ufrcnn_surrounding and prob_detector. Availability is version/config dependent; the dispatch key must exist or construction fails.
  • dim=2 uses 2D patch/list settings; dim=3 uses 3D settings. This choice affects channels, patch shape, augmentation, anchors, and model-specific defaults. Do not infer 3D support from a successful CPU import; route runtime prerequisites to cuda-extensions and model details to models-and-architectures.
  • Paths are configuration data, not portable defaults. Replace example machine paths with an existing preprocessed-data root and verify that its input_df_name (normally info_df.pickle) and expected .npy records exist. Do not point a new experiment at a snapshot or private dataset by accident.
  • Training/testing snapshot scripts into exp_dir; testing then copies the stored model/backbone back to the source tree as temporary modules. This is a legacy mutable workflow. Inspect and obtain an explicit safe workspace before using it; this node does not perform those writes.
  • n_cv_splits defaults to 5. With no --folds, train/test loops use range(cf.n_cv_splits). A supplied fold list is not range-validated by the CLI, so validate it yourself and ensure fold IDs match fold_ids.pickle when the experiment is not hold-out.
  • --use_stored_settings is a reproducibility choice, not a generic repair switch. Prefer the experiment snapshot for testing and for resumed work when it is complete; otherwise stop on missing or inconsistent configs.py, default_configs.py, model.py, or backbone.py.
  • This node owns configuration/lifecycle routing only. It does not explain detector forward passes, data conversion, prediction consolidation, evaluation metrics, or custom-op builds; use the linked sibling nodes.

All detailed tables, source-backed values, and failure handling live in the four linked references so this file remains a router.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351