Ejemplo n.º 1
0
 def __init__( self, stochastics ):
     """
     Initialises a blank sampler object.
     """
     self.model = Model( stochastics )
     Utils.update_attributes( self, stochastics )
     self.chain = {}
     Utils.assign_step_method( self, BuiltinStepMethods.MetropolisHastings )
     self.show_progressbar = True
Ejemplo n.º 2
0
 def assign_step_method( self, step_method, **kwargs ):
     """
     Assigns the specified step method to the Sampler object.
     """
     Utils.assign_step_method( self, step_method, **kwargs )