Skip to content
Back to skills

Evaluation Submission

ASecurity

"Prepare fastMRI reconstructions for validation, metric evaluation,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
testingpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill evaluation-submission --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Evaluation Submission?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Evaluation Submission
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-evaluation-submission/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-evaluation-submission)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: evaluation-submission
description: "Prepare fastMRI reconstructions for validation, metric evaluation,
  zero-filled baselines, v2 filename conversion, and leaderboard-style
  submissions."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# fastMRI evaluation-submission

Use this sub-skill when an agent needs to create, validate, rename, evaluate, or explain fastMRI reconstruction outputs for validation/test-style submission workflows.

Do not use this sub-skill for HDF5 dataset loading internals, low-level MRI tensor operators, or training loops; route those to [data-loading](../data-loading/SKILL.md), [mri-operators](../mri-operators/SKILL.md), or the training sub-skill instead.

## References and scripts

- [Evaluation reference](references/evaluation-reference.md): Use this for exact public APIs, metric definitions, challenge target keys, and evaluation crop behavior.
- [Submission workflows](references/submission-workflows.md): Use this for end-to-end output preparation, zero-filled baselines, metric runs, v2 filename conversion, and BART caveats.
- [Troubleshooting](references/troubleshooting.md): Use this to diagnose missing datasets, filename/key mismatches, empty filters, crop issues, unavailable leaderboards, and optional BART setup failures.
- [Zero-filled reconstruction script](scripts/zero_filled_reconstruction.py): Use this bundled baseline script to turn fastMRI k-space HDF5 files into `reconstruction` prediction files without depending on repository example paths.
- [Validation script](scripts/validate_reconstructions.py): Use this before metrics or packaging to check prediction filenames, HDF5 keys, target compatibility, optional filters, and v2 suffix expectations.

## Critical facts

- `fastmri.save_reconstructions(reconstructions, out_dir)` writes one `.h5` per dictionary key and stores the array under dataset key `reconstruction`.
- `fastmri.convert_fnames_to_v2(path)` renames `.h5` files missing the `_v2.h5` suffix and raises `ValueError` if the directory path does not exist.
- Metric evaluation expects target files and prediction files to share filenames; prediction files must contain dataset `reconstruction`.
- `--challenge multicoil` uses target key `reconstruction_rss`; `--challenge singlecoil` uses target key `reconstruction_esc`.
- The evaluation path center-crops both target and reconstruction to the square target width before computing MSE, NMSE, PSNR, and SSIM.
- The public fastMRI leaderboard site is unavailable in this checkout's README notice, so prepare and validate outputs but do not promise upload availability.

## Minimal commands

```bash
python scripts/validate_reconstructions.py --predictions-path PREDICTIONS --target-path TARGETS --challenge multicoil
python -m fastmri.evaluate --target-path TARGETS --predictions-path PREDICTIONS --challenge multicoil
python scripts/zero_filled_reconstruction.py --data-path KSPACE_DATA --output-path PREDICTIONS --challenge multicoil
```

For public knee v2-style filenames after writing predictions:

```python
from pathlib import Path
from fastmri import convert_fnames_to_v2
convert_fnames_to_v2(Path("PREDICTIONS"))
```

Files in this skill

  • SKILL.md3.1 KB
  • references/evaluation-reference.md3.8 KB
  • references/submission-workflows.md4.1 KB
  • references/troubleshooting.md3.6 KB
  • scripts/validate_reconstructions.py5.7 KB
  • scripts/zero_filled_reconstruction.py2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.