Skip to content

Ordering of HybridGibbs #657

Description

@jeverink

Description

The order in which the HybridGibbs samples from the conditional distributions is currently the order in which they are combined in the JointDistribution. This could cause confusion when providing user-specified initial-guesses for some variables, as these initial-guesses might not be used at all, impacting the results.

It would perhaps be more natural to use the ordering in which the sampling strategy is specified instead, such the ordering is explicitly described as part of the sampler, not as part of the distribution.

Definition of Done (Feature/change)

  • Add scan_order argument for HybridGibbs sampler to provide user defined order (if none is provided sampling_strategy order is followed)

Definition of Done (Mandatory)

  • Documentation added (docstrings on all public methods/classes)
  • Unit tests added/updated (and passing!)
  • Code reviewed and approved by 2 CUQI-maintainers
  • Online documentation is rendered correctly (esp. math)

Defintion of Done (Optional)

  • (skip for this one) HowTo/tutorial added

Example to reproduce (behavior before this PR)
With this PR, sampling order is specified with scan_order or sampling_strategy if the former is None

Image

Specific problematic code from the HybridGibbs class:
Image
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions