Navigation
class ShuffleEngine( OrderEngine ) | Source |
---|
The ShuffleEngine tries to shuffle a selection of the parameters in place.
Input order : [0,1,2,3,4,5,6,7,8,9]
output order: [0,1,2,5,3,7.4,6,8,9]
It belongs to the class of generalized travelling salesman problems where the parameters of the problem is an ordered list.
The walker is kept when the logLikelihood > lowLhood
Attributes from Engine
walkers, errdis, maxtrials, nstep, slow, rng, report, phantoms, verbose
Author Do Kester.
ShuffleEngine( walkers, errdis, copy=None, **kwargs ) |
---|
Constructor.
Parameters
- walkers : SampleList
walkers to be diffused - errdis : ErrorDistribution
error distribution to be used - copy : ShuffleEngine
to be copied - kwargs : dict for Engine
"phantoms", "slow", "seed", "verbose"
copy( ) |
---|
execute( kw, lowLhood ) |
---|
Parameters
- kw : int
id of walker to diffuse - lowLhood : float
lower limit in logLikelihood
Returns
- int : the number of successfull moves
Methods inherited from OrderEngine |
---|
Methods inherited from Engine |
---|
- bestBoost( problem, myFitter=None )
- setWalker( kw, problem, allpars, logL, walker=None, fitIndex=None )
- noBoost( walker )
- doBoost( walker )
- domain2Unit( problem, dval, kpar=None )
- unit2Domain( problem, uval, kpar=None )
- startJourney( unitStart )
- calcJourney( unitDistance )
- reportJourney( )
- makeIndex( np, val )
- reportCall( )
- reportSuccess( )
- reportReject( )
- reportFailed( )
- reportBest( )
- printReport( best=False )
- successRate( )
- getUnitMinmax( problem, lowLhood )
- getUnitRange( problem, lowLhood )