Package mvpa :: Package featsel :: Module helpers :: Class NBackHistoryStopCrit
[hide private]
[frames] | no frames]

Class NBackHistoryStopCrit

source code


Stop computation if for a number of steps error was increasing
Instance Methods [hide private]
 
__init__(self, bestdetector=BestDetector(), steps=10)
Initialize with number of steps
source code
 
__call__(self, errors)
Instruct when to stop.
source code

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

Class Variables [hide private]
  steps = property(fget= lambda x: x.__steps)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, bestdetector=BestDetector(), steps=10)
(Constructor)

source code 
Initialize with number of steps
Parameters:
  • bestdetector (BestDetector instance) - used to determine where the best error is located.
  • steps (int) - How many steps to check after optimal value.
Overrides: object.__init__

__call__(self, errors)
(Call operator)

source code 

Instruct when to stop.

Every implementation should return False when an empty list is passed as argument.

Returns tuple stop.

Overrides: StoppingCriterion.__call__
(inherited documentation)