Source code for samplers.sampler

from abc import ABC, abstractmethod

[docs]class Sampler(ABC): """ Top-level abstract class for all samplers """ def __init__(self, target, proposal): self.proposal = proposal self.target = target
[docs] @abstractmethod def sample(self): pass