medtech-model-evidence-export
Exports sanitized metadata, parameters, reproducibility details, quality metrics, and optional review artifacts from Medical AI inference runs or evidence packs to MLflow. Use after inference, including NV-Generate runs; not for live training tracking, model registration, or clinical use.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 14
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 25cd5c98f60e1993… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Medtech Model Evidence Export to MLflow
Purpose
Mirror an existing medical-inference result or evidence pack into MLflow after
the run and emit the export_result JSON contract. Keep the original evidence
pack as the source of truth. Training skills should add MLflow inside their
training loops instead.
Instructions
- Run
scripts/export_evidence_pack.pyin the defaultdry-runmode. - Inspect
params,metrics,artifact_plan, andmlflow.note.content. - Choose
--mode localor--mode databricksonly after checking the target. - Keep
--artifact-policy metadataunless the target is approved for images. - For
previeworallin a live mode, also pass--confirm-medical-artifact-upload. - Keep
--source-ref,--note, config filenames, and artifact filenames free of patient or secret identifiers; always review the dry-run output first.
Hosts with a script helper can use
run_script("scripts/export_evidence_pack.py", args=["PACK_OR_RESULT", "--mode", "dry-run"]).
Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
scripts/export_evidence_pack.py | Export post-hoc inference evidence through MLflow. | PACK_OR_RESULT --mode dry-run --artifact-policy metadata |
Prerequisites
- Python 3.10+.
mlflow>=2.10,<4forlocalordatabricksmode.numpy>=1.24,<3andnibabel>=4,<6for NIfTI quality metrics and previews.MLFLOW_TRACKING_URImay select a caller-managed tracking server.- Databricks mode uses the caller's
DATABRICKS_HOST,DATABRICKS_TOKEN, or configured Databricks profile. The declared network endpoint ishttps://<caller-provided-mlflow-or-databricks-workspace>; Docker and GPU are not required. - Local mode may write the MLflow store under
<current-working-directory>/mlruns.
Examples
Preview the export without contacting MLflow:
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/inference_pack --mode dry-run --artifact-policy metadata
Export a direct NV-Generate result with reproducibility metadata:
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/nv-generate/result.json \
--mode local \
--experiment-name medical-ai-inference \
--config configs/chest_lung_tumor.json \
--seed 0 \
--source-ref git:61c4ec709b84cad468852243c48e250bec732074
Log downsampled slice previews, but not raw NIfTI files:
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/nv-generate/result.json \
--mode databricks \
--experiment-name /Shared/medical-ai-inference \
--artifact-policy preview \
--confirm-medical-artifact-upload
--artifact-policy all additionally uploads discovered or explicitly supplied
NIfTI images and masks, subject to --max-artifact-mb. Use --image and
--mask when paths are not present in the result JSON.
The exporter logs:
- scalar run and quality metrics, including sampled HU mean/std/min/max for CT (generic intensity statistics otherwise), a documented intensity-SNR heuristic, mask foreground percentage, and mapped tumor volume percentage when a tumor label mapping is available;
- generation parameters, model/checkpoint identity, RNG seed, and recipe hash;
- source config digest or
--source-ref, plus a prompt digest when present; mlflow.note.contentwith a short human-readable run summary;- a sanitized metadata bundle by default, optional PNG slice previews, and
raw image/mask artifacts only under the explicit
allpolicy.
Limitations
- This is post-hoc inference export, not live training-curve tracking.
- Global intensity SNR and downsampled volume statistics are engineering checks, not image-quality or clinical-performance claims.
- Preview and raw artifacts may contain sensitive medical information. The caller must approve the destination and data policy before upload.
- The exporter does not evaluate model quality, register models, or alter the source evidence pack.
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| Evidence source not recognized | No direct result JSON or pack manifest.json. | Pass the result file, evidence-pack directory, or trusted-run root. |
| MLflow import fails | Live mode lacks the declared package. | Install mlflow>=2.10,<4 or use --mode dry-run. |
| Preview/all confirmation error | A live image upload was not acknowledged. | Review the destination, then pass --confirm-medical-artifact-upload. |
| Referenced image not found | Result paths moved after inference. | Pass current paths with --image and --mask. |
Files
14- BENCHMARK.md
82ee1ef5a27.7 KB - SKILL.md
fed83201655.0 KB - evals/evals.json
46c0ecfca92.4 KB - fixtures/sample_pack/integrity_check.json
6a4c039a9f62 B - fixtures/sample_pack/manifest.json
a84f38ab79229 B - fixtures/sample_pack/output.json
e1a571a3ed1.5 KB - fixtures/sample_pack/runtime_profile.json
e0ebe52df1108 B - fixtures/sample_pack/validation_summary.json
2cf66d19d4121 B - fixtures/sample_result.json
3e3e8af4581.8 KB - scripts/export_evidence_pack.py
c7d3cd98d932.0 KB - skill-card.md
f4971436514.1 KB - skill_manifest.yaml
7b0fd9ebde3.7 KB - tests/test_export_evidence_pack.py
eb23e520108.6 KB - validators/output_schema.json
00dad8eb353.2 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from NVIDIA/skills8
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.
Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.
Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.
Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.
Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.
Calibrates pre-recorded `cam_*.mp4` datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live RTSP streams to `amc-run-rtsp-calibration`.
Launch AutoMagicCalib microservice and web UI from NGC release images via Docker Compose. Use when user says 'deploy auto calibration', 'launch auto calibration', 'launch AMC', 'start MS+UI', or 'set up auto-magic-calib'. Requires NGC API key.
Related ai-ml skillsscan passed
Inspect the availability of ML training on a completed Itô compute booking and, when the canonical backend becomes available, hand off an explicitly confirmed training manifest. Use after ito-compute has booked GPU nodes and the user wants pre-training, fine-tuning, or RL on that metal. ECC implemen
Pair a remote AI agent with your browser. (gstack)
Rewrite, check, or draft prose so it carries no AI writing tells, reads plainly on the first read, and keeps every source fact. Use when asked to make writing plainer or free of those tells, to check writing for them, or when drafting from supplied content. Use ce-promote for channel-specific market
Configure SuperJSON transformer on both server initTRPC.create({ transformer: superjson }) and every client terminating link (httpBatchLink, httpLink, wsLink, httpSubscriptionLink) to support Date, Map, Set, BigInt over the wire. Transformer must match on both sides. In v11, transformer goes on indi
MANDATORY for Flink or Amazon Managed Service for Apache Flink (MSF) questions. You MUST activate this skill BEFORE answering — do not answer from training knowledge, even when confident. MSF has service-specific constraints (KPU model, prohibited checkpoint and parallelism config in app code, the v
Validates dataset formatting and quality for SageMaker model fine-tuning (SFT, DPO, or RLVR). Use when the user says "is my dataset okay", "evaluate my data", "check my training data", "I have my own data", or before starting any fine-tuning job. Detects file format, checks schema compliance against