WalkerList = class WalkerList(builtins.list) |
|
WalkerList(problem, nwalkers, allpars, fitIndex)
WalkerList is a list of Walker.
It is the working ensemble of NestedSampler.
Attributes
----------
logZ : float (read-only)
Natural log of evidence
info : float (read-only)
The information H. The compression factor ( the ratio of the prior space
available to the model parameters over the posterior space ) is equal to the exp( H ).
iteration : int
Present iteration number.
Author Do Kester |
|
- Method resolution order:
- WalkerList
- builtins.list
- builtins.object
Constructor:
- WalkerList( problem, nwalkers, allpars, fitIndex )
- Constructor.
Parameters
----------
nwalkers : int
number of walkerss created.
problem : Problem
to be used in the walkerss
allpars : array_like
parameters and hyperparams of the problem
fitIndex : array_like
indices of allpars to be fitted
Methods defined here:
- addWalkers( problem, nWalkers, allpars, fitIndex )
- copy( src, des )
- Copy one item of the list onto another.
Parameters
----------
src : int
the source item
des : int
the destination item
- getLogLikelihoodEvolution()
- Return the evolution of the log( Likelihood ).
- getLowLogL()
- Return the lowest value of logL in the walkerlist, plus its index.
- getParameterEvolution( kpar=None )
- Return the evolution of one or all parameters.
In case of dynamic models the number of parameters may vary.
They are zero-padded. Use `getNumberOfParametersEvolution`
to get the actual number.
Parameters
----------
kpar : int or tuple of ints
the parameter to be selected. Default: all
- getScaleEvolution()
- Return the evolution of the scale.
- logPlus( x, y )
- Return the log of sum.
- setWalker( walker, index )
- replace/append a Walker to this list
Parameters
----------
walker : Walker
the list to take to copy from
index : int
the index at which to set
Methods inherited from builtins.list:
Overloaded operators and aliases
Other methods
- append( object, /)
- clear( /)
- count( value, /)
- extend( iterable, /)
- index( value, start=0, stop=9223372036854775807, /)
- insert( index, object, /)
- pop( index=-1, /)
- remove( value, /)
- reverse( /)
- sort( /, *, key=None, reverse=False )
Overloaded operators and aliases
|
|