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

transform_unconstrained_to_constrained behavior is unclear for single values and Vectors #369

Open
nefrathenrici opened this issue Mar 4, 2024 · 0 comments

Comments

@nefrathenrici
Copy link
Member

A single value results in an uninformative StackOverflowError, and a Vector results in just one value being returned.

transform_constrained_to_unconstrained has the same issue.

Reproducer:

import EnsembleKalmanProcesses.ParameterDistributions: ParameterDistribution, bounded_below, transform_unconstrained_to_constrained, transform_constrained_to_unconstrained

posterior = ParameterDistribution([1.;;], bounded_below(0), "test")

transform_constrained_to_unconstrained(posterior, 1.0)
transform_constrained_to_unconstrained(posterior, [1.0, 2.0])

transform_unconstrained_to_constrained(posterior, 1.0)
transform_unconstrained_to_constrained(posterior, [1.0, 2.0])
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

No branches or pull requests

1 participant