Skip to content

Conversation

@paul-buerkner
Copy link
Contributor

This PR fixes issue #328 by removing inference_variables from conditions in the continuous approximator before passing conditions to the networks. Taggine @Kucharssim to double check that this fixes the issue and @LarsKue for reviewing this PR.

Copy link
Contributor

@LarsKue LarsKue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix! I would merge this as-is, but a much simpler way to remove a single key would be:

conditions.pop("inference_variables", None)

in case you want to implement this.

@paul-buerkner
Copy link
Contributor Author

Ah yeah, will change this. Thank you!

@paul-buerkner
Copy link
Contributor Author

Changed.

@LarsKue
Copy link
Contributor

LarsKue commented Feb 21, 2025

@paul-buerkner Let's also add a comment to the Model Comparison line, so it doesn't confuse readers.

@paul-buerkner
Copy link
Contributor Author

done.

@Kucharssim
Copy link
Member

Yes, this PR fixes the issue :)

@paul-buerkner
Copy link
Contributor Author

Lovely, @LarsKue merge away if you are happy too :-)

@LarsKue LarsKue merged commit ec2a0e2 into dev Feb 21, 2025
13 checks passed
@LarsKue LarsKue deleted the issue-328 branch February 21, 2025 09:24
@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
bayesflow/approximators/continuous_approximator.py 0.00% 1 Missing ⚠️
...low/approximators/model_comparison_approximator.py 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
bayesflow/approximators/continuous_approximator.py 51.40% <0.00%> (-0.49%) ⬇️
...low/approximators/model_comparison_approximator.py 23.68% <0.00%> (-0.21%) ⬇️

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.

5 participants