Conversation
…elihoodFD classes for improved clarity and efficiency
…ianPrior, RayleighPrior, and PowerLawPrior classes
…se lowercase float
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis update introduces a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FullRangePrior
participant BasePrior
User->>FullRangePrior: sample(n)
loop until n valid samples
FullRangePrior->>BasePrior: sample(batch_size)
FullRangePrior->>FullRangePrior: eval_constraints(samples)
FullRangePrior->>User: return valid samples
end
User->>FullRangePrior: log_prob(x)
FullRangePrior->>FullRangePrior: eval_constraints(x)
alt constraints satisfied
FullRangePrior->>BasePrior: log_prob(x)
FullRangePrior->>User: return log_prob
else constraints violated
FullRangePrior->>User: return -inf
end
Suggested labels
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
I am looking at this right now but FYI this is not in line with how the prior system is designed, and I don't think this PR will not be merged considering the direction this is going. |
…anceToSNRWeightedDistanceTransform to remove bound to unbound
…anceToSNRWeightedDistanceTransform to remove unbounded suffix from name mappings
…named_initial_position
…kelihoodFD classes
…ccept SequentialTransformPrior and handle constraints more effectively
…ance attribute descriptions.
…ikelihoodFD classes for improved readability
…ests for constraint behavior
… handling; add comprehensive tests for 1D and 2D scenarios
…se parameter_names for initial position
…nd HeterodynedTransientLikelihoodFD classes
…n and dL_max parameters
… in IMRPhenomPv2StandardCBCRunDefinition
|
@CharmaineWONG2 thanks! Do you also have runs with all 3 detectors? E.g. GW170817 or GW170814? |
| while n_valid < n_samples: | ||
| rng_key, subkey = jax.random.split(rng_key) | ||
| new_samples = self.base_prior[0].sample(subkey, n_samples - n_valid) | ||
| new_mask = constraints(new_samples) |
There was a problem hiding this comment.
I think this should be self.constraints instead?
There was a problem hiding this comment.
constraints was defined in line 294. It is basically a vmap version of self.constraints.


Summary by CodeRabbit