Skip to content

[BUG] Fix the rescaling of subsets of ConditionalPriorDict and streamline subset resolving#1025

Open
JasperMartins wants to merge 5 commits intobilby-dev:mainfrom
JasperMartins:fix-rescale-subset
Open

[BUG] Fix the rescaling of subsets of ConditionalPriorDict and streamline subset resolving#1025
JasperMartins wants to merge 5 commits intobilby-dev:mainfrom
JasperMartins:fix-rescale-subset

Conversation

@JasperMartins
Copy link
Copy Markdown
Contributor

@JasperMartins JasperMartins commented Dec 12, 2025

This PR addresses Item 3 in #1026

To reiterate, current issues for rescaling/sampling/evaluating subsets of keys are:

  • Currently, if a subset of the prior-keys is requested (eg. 3 keys for a PriorDict with 4 priors) and a theta with the appropriate length (3) is passed, rescaling fails because the function attempts to rescale all non-fixed priors. Also, it would be necessary to check if the subset of requested keys can be resolved.
  • The current implementation would treat any ConditionalBetaDistribution as a "fixed" prior and add it to any prior evaluation, which could lead to wrong results.

This PR addresses these issues and streamlines subset-resolving.

@JasperMartins
Copy link
Copy Markdown
Contributor Author

Just a rebase to the current main :)

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.

1 participant