Package gmisclib :: Module mcmc :: Class ContPrmArchive
[frames] | no frames]

Class ContPrmArchive

source code


Instance Methods
 
__init__(self, lop, np_eff, strategy='intermediate', maxArchSize=None, alpha=None)
Append_hook() is called for every element of the archive.
source code
 
append_hook(self, x)
This accumulates parameter means and standard deviations.
source code
 
truncate_hook(self, to_be_dropped) source code
 
variance(self) source code
 
__len__(self) (Inherited from gmisclib.mcmc.Archive) source code
str
append(self, x, maxdups)
Adds stuff to the archive, possibly sorting the new information into place. (Inherited from gmisclib.mcmc.Archive)
source code
 
choose(self) (Inherited from gmisclib.mcmc.Archive) source code
 
distinct_count(self)
How many distinct values of the parameters are there in the archive? (Inherited from gmisclib.mcmc.Archive)
source code
 
prmlist(self, n) (Inherited from gmisclib.mcmc.Archive) source code
 
reset(self)
We sort the archive to speed the convergence to the best solution. (Inherited from gmisclib.mcmc.Archive)
source code
 
sort(self)
Called under lock. (Inherited from gmisclib.mcmc.Archive)
source code
 
truncate(self, desired_length)
Shortens the archive and updates the various counters and statistics. (Inherited from gmisclib.mcmc.Archive)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  SANNEAL = 'intermediate'
Sort the list only when logp() is making substantial improvements. (Inherited from gmisclib.mcmc.Archive)
  SSAMPLE = 'sample'
Never sort the list. (Inherited from gmisclib.mcmc.Archive)
  SUPHILL = 'hillclimb'
Always keep the list of positions sorted. (Inherited from gmisclib.mcmc.Archive)
  Sfac = {'hillclimb': 100, 'intermediate': 5, 'sample': 2} (Inherited from gmisclib.mcmc.Archive)
Instance Variables
  min_l
The minimum length for the archive. (Inherited from gmisclib.mcmc.Archive)
Properties

Inherited from object: __class__

Method Details

__init__(self, lop, np_eff, strategy='intermediate', maxArchSize=None, alpha=None)
(Constructor)

source code 

Append_hook() is called for every element of the archive. That function can be replaced in a sub-class to accumulate some kind of summary. Here, it is used to keep track of parameter means and standard deviations.

Overrides: object.__init__

append_hook(self, x)

source code 

This accumulates parameter means and standard deviations.

Overrides: Archive.append_hook

truncate_hook(self, to_be_dropped)

source code 
Overrides: Archive.truncate_hook