Package mvpa :: Package featsel :: Module helpers :: Class MultiStopCrit

[hide private]
[frames] | no frames]

# Class MultiStopCrit

source code

Stop computation if the latest error drops below a certain threshold.

Instance Methods | [hide private]

__init__(self, crits, mode='or') x.__init__(...) initializes x; see help(type(x)) for signature | source code

__call__(self, errors) Evaluate all criteria to determine the value of the multi criterion. | source code

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

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, crits, mode='or')
(Constructor)

source code

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  - `crits` (list of StoppingCriterion instances) - For each call to MultiStopCrit all of these criterions will be evaluated.
  - `mode` (any of ('and', 'or')) - Logical function to determine the multi criterion from the set of base criteria.
Overrides: object.__init__

### __call__(self, errors)
(Call operator)

source code

Evaluate all criteria to determine the value of the multi criterion.

Overrides: StoppingCriterion.__call__