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)
Definition of Done (Mandatory)
Defintion of Done (Optional)
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

Specific problematic code from the HybridGibbs class:


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)
scan_orderargument for HybridGibbs sampler to provide user defined order (if none is provided sampling_strategy order is followed)Definition of Done (Mandatory)
Defintion of Done (Optional)
Example to reproduce (behavior before this PR)
With this PR, sampling order is specified with
scan_orderorsampling_strategyif the former is NoneSpecific problematic code from the HybridGibbs class:

