Skip to content

[codex] Add score config validation#9

Closed
ftshijt wants to merge 154 commits into
mainfrom
codex/score-config-validation
Closed

[codex] Add score config validation#9
ftshijt wants to merge 154 commits into
mainfrom
codex/score-config-validation

Conversation

@ftshijt
Copy link
Copy Markdown
Owner

@ftshijt ftshijt commented May 26, 2026

Closed in favor of the upstream-targeted PR for this change.

Original body:

Summary

Adds a preflight validator for YAML score configs so users get clear, actionable errors before audio loading, metric setup, or scoring begins.

The validator now catches:

  • unknown metric names, with suggestions when possible
  • metrics that require reference audio without --gt
  • metrics that require reference text without --text
  • GPU-required metrics used without --use_gpu
  • missing optional dependencies
  • unknown top-level metric parameters, including likely typos

The CLI scorer and chunked scorer both run validation immediately after YAML parsing. The dependency handling also falls back to metadata discovery for metrics whose optional backend cannot be imported, so those cases report as missing dependencies instead of misleading unknown metrics.

Validation

  • .codex-test-venv/bin/python -m pytest test/test_metrics/test_definition.py -q
  • .codex-test-venv/bin/python -m py_compile versa/config_validation.py versa/bin/scorer.py versa/bin/scorer_chunk.py

ftshijt and others added 30 commits June 16, 2025 02:34
1) wer with fireredasr
2) per with fireredasr
ftshijt added 29 commits May 12, 2026 09:02
…d-scoring

Add metric-oriented scoring mode
…ckaging-ci

Refine packaging CI and metric summaries
…o-audio-extra

[codex] Move fastdtw to audio extra
…o-audio-extra

Make real metric caches explicit
…-real-fadtk-tests

Add registry-backed distributional metrics tests
# Conflicts:
#	docs/supported_metrics.md
#	versa/__init__.py
#	versa/metrics.py
#	versa/scorer_shared.py
…etric-migration

Settle metric OO migration cleanup
…ic-discovery-cli

Add metric discovery CLI
@ftshijt ftshijt closed this May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants