mvpa2.featsel.ifs.BestDetector

Inheritance diagram of BestDetector
class mvpa2.featsel.ifs.BestDetector(func=<built-in function min>, lastminimum=False)

Determine whether the last value in a sequence is the best one given some criterion.

Attributes

bestindex

Methods

__call__(errors) Returns True if the last value in errors is the best or False otherwise.

Initialize with number of steps

Parameters:

fun : functor

Functor to select the best results. Defaults to min

lastminimum : bool

Toggle whether the latest or the earliest minimum is used as optimal value to determine the stopping criterion.

Attributes

bestindex

Methods

__call__(errors) Returns True if the last value in errors is the best or False otherwise.
bestindex