-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix initial points sampling #156
Conversation
Replace #153 |
|
||
key, subkey = jax.random.split(key) | ||
guess = self.prior.sample(subkey, self.sampler.n_chains) | ||
guess = self.prior.sample(subkey, non_finite_index.sum()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The guesses are not guaranteed to be finite, hence the original implementation. Please change it back
@@ -558,14 +558,14 @@ def maximize_likelihood( | |||
): | |||
parameter_names = prior.parameter_names | |||
for transform in sample_transforms: | |||
parameter_names = transform.propagate_name(parameter_names) | |||
parameter_names = jax.vmap(transform.propagate_name)(parameter_names) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One does not need vmap for propagating the names
Close this for a moment |
Fix bug in
jim.sample()
and use the same code forHeterodynedTransientLikelihoodFD.maximize_likelihood()
.