Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Added ensemble posterior weights validation #1307

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samadpls
Copy link
Contributor

What does this implement/fix? Explain your changes

Adds a test case for weight validation in EnsemblePosterior to verify proper handling of different weight formats (list, tensor) and error cases. The test ensures the API correctly validates weights without running full posterior accuracy checks.

Does this close any currently open issues?

Fixes #1304

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.

  • I have read and understood the contribution
    guidelines
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have reported how long the new tests run and potentially marked them
    with pytest.mark.slow.
  • New and existing unit tests pass locally with my changes
  • I performed linting and formatting as described in the contribution
    guidelines
  • There are no conflicts with the main branch

For the reviewer:

  • I have reviewed every file
  • All comments have been addressed.

@samadpls samadpls force-pushed the test/ensemble-posterior-weights branch 2 times, most recently from 43ca8bb to 49be91e Compare November 22, 2024 17:09
@samadpls samadpls force-pushed the test/ensemble-posterior-weights branch from 49be91e to a9e2775 Compare November 22, 2024 17:15
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.66%. Comparing base (3ff1f51) to head (a9e2775).

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1307       +/-   ##
===========================================
- Coverage   89.35%   78.66%   -10.70%     
===========================================
  Files         118      118               
  Lines        8709     8703        -6     
===========================================
- Hits         7782     6846      -936     
- Misses        927     1857      +930     
Flag Coverage Δ
unittests 78.66% <ø> (-10.70%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 33 files with indirect coverage changes

---- 🚨 Try these New Features:

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.

add test for passing weights to ensemble posterior
1 participant