Skip to content

Reject NaN outputs in reproducibility checks - #508

Merged
FynnBe merged 2 commits into
mainfrom
copilot/bioimage-io-507-reproducibility-tests
Oct 28, 2026
Merged

FynnBe merged 2 commits into
mainfrom
copilot/bioimage-io-507-reproducibility-tests

Conversation

Copilot AI commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Reproducibility checks could pass when model outputs were all NaN, because NaN comparisons evaluate false. Treat non-close values, including NaNs, as mismatches.

  • Comparison: Use np.isclose to detect mismatched output elements.
  • Regression test: Verify an all-NaN output disagrees with finite expected values.
np.isclose(np.nan, 1.0)  # False: counted as a mismatch

Co-authored-by: FynnBe <15139589+FynnBe@users.noreply.github.com>
Copilot AI changed the title [WIP] Add reproducibility tests for all NaN output Reject NaN outputs in reproducibility checks Oct 26, 2026
Copilot AI requested a review from FynnBe October 26, 2026 11:26
@FynnBe
FynnBe marked this pull request as ready for review October 28, 2026 13:01
@FynnBe

FynnBe commented Oct 28, 2026

Copy link
Copy Markdown
Member

test failures unrelated

@FynnBe
FynnBe merged commit 66968fd into main Oct 28, 2026
7 of 13 checks passed
@FynnBe
FynnBe deleted the copilot/bioimage-io-507-reproducibility-tests branch October 28, 2026 13:57
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.

reproducibility tests could pass for all nan output

2 participants