beanmachine.ppl.inference.proposer.single_site_uniform_proposer module

class beanmachine.ppl.inference.proposer.single_site_uniform_proposer.SingleSiteUniformProposer(target_rv: beanmachine.ppl.model.rv_identifier.RVIdentifier)

Bases: beanmachine.ppl.inference.proposer.base_single_site_mh_proposer.BaseSingleSiteMHProposer

get_proposal_distribution(world: beanmachine.ppl.world.world.World) torch.distributions.distribution.Distribution

Propose a new value for self.node using the prior distribution.