Repository navigation
Conversation
AudioMetrics.get_metrics divided no_answer by 2.0 to "compensate double counting", but the base metrics add no_answer once per entry, so the published value was half the real percentage (1 empty of 2 gave 25.0). Remove the division and the README bullet that documented it, and pin the true share in the test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Piotr Żelasko <pzelasko@nvidia.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
audio_eval: publishesno_answeras the true percentage of entries whose answer is empty, instead of half of it.Why.
AudioMetrics.get_metricsdividedno_answerby 2.0 for every aggregation mode, with the comment "compensate for double-counting in base metrics". The base_compute_pass_at_kaddsno_answeronce per entry, so there is no double count and the division only halved the real value. Checked onmainwith two entries: one empty and one non-empty generation has a true share of 50 but published 25.0; two empty generations published 50.0 instead of 100.0. A reader comparingno_answerwith the share of empty outputs in the rollouts would see a factor of two.What changed.
resources_servers/audio_eval/_scoring/evaluation/metrics/audio_metrics.py: removed theno_answer / 2.0block.pass@k,pass@1[avg-of-k]andmajority@kno_answervalues come straight from the base class, unchanged.resources_servers/audio_eval/README.md: replaced the "no_answeris halved" bullet in "Known behaviors inherited from NeMo Skills" with a statement of whatno_answeris (percentage of scored entries whose extracted answer is empty orNone).resources_servers/audio_eval/tests/test_scoring_audio_metrics.py: the test that asserted 25.0 is renamed and now asserts 50.0 (1 empty of 2), 100.0 (2 of 2) and 0.0 (none empty). The neighbouring tests of the basepass@kandmajority@kpaths call the base class directly and are unaffected.Related issue: none.
Validation
gym env test --resources-server audio_eval: 202 passed, 0 failed (server environment built fromuv.lock)./ 2.0back makes the renamed test fail (1 failed, 31 passed intest_scoring_audio_metrics.py); the file was restored afterwards.setuptools, git available):tests/unit_tests/test_public_api_facades.py, 1042 passed.ruff check/ruff format --check, scopedpre-commit(including the guardwords hook), anddetect-secrets-hookon the changed files: pass.benchmarks/for other halving or "double counting" statements: none left; no benchmark onmainreads the audiono_answervalue.Rollouts
N/A. The change is arithmetic in metric aggregation and is covered by unit tests; no model behavior, prompt or verifier logic changes.
Compatibility and benchmark impact
no_answervalues of every benchmark that usesAudioMetrics(or a subclass that calls itsget_metrics) double: for example 2.5 becomes 5.0, and the maximum is now 100 instead of 50.Review gates
resources_servers/audio_eval/{README.md,_scoring/evaluation/metrics/audio_metrics.py,tests/test_scoring_audio_metrics.py}. No.github/,pyproject.toml, lock file or shared docs touched; no new dependencies.Checklist
gym env test, facade test); mutation caught.🤖 Generated with Claude Code