cuqi.experimental.mcmc.RegularizedLinearRTO.__init__#
- RegularizedLinearRTO.__init__(target=None, initial_point=None, maxit=100, inner_max_it=10, stepsize='automatic', penalty_parameter=10, abstol=1e-10, adaptive=True, **kwargs)#
Initializer for abstract base class for all samplers.
Any subclassing samplers should simply store input parameters as part of the __init__ method.
The actual initialization of the sampler should be done in the _initialize method.
- Parameters:
target (cuqi.density.Density) – The target density.
initial_point (array-like, optional) – The initial point for the sampler. If not given, the sampler will choose an initial point.
callback (callable, optional) – A function that will be called after each sample is drawn. The function should take two arguments: the sample and the index of the sample. The sample is a 1D numpy array and the index is an integer. The callback function is useful for monitoring the sampler during sampling.