SamplerRecommender#

class cuqi.experimental.SamplerRecommender(target, exceptions=[])#

This class can be used to automatically choose a sampler.

Parameters:
  • target (Density or JointDistribution) – Distribution to get sampler recommendations for.

  • exceptions (list[cuqi.experimental.mcmc.Sampler], optional) – Samplers not to be recommended.

__init__(target, exceptions=[])#

Methods

__init__(target[, exceptions])

recommend([as_string])

Suggests a possible sampler that can be used for sampling from the target distribution.

recommend_HybridGibbs_sampling_strategy([...])

Suggests a possible sampling strategy to be used with the HybridGibbs sampler.

valid_HybridGibbs_sampling_strategy([as_string])

Find all possible sampling strategies to be used with the HybridGibbs sampler.

valid_samplers([as_string])

Finds all possible samplers that can be used for sampling from the target distribution.

Attributes

ordering

Returns the ordered list of recommendation rules used by the recommender.

target

Return the target Distribution.