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

Class FractionTailSelector

source code


Given a sequence, provide Ids for a fraction of elements
Nested Classes [hide private]

Inherited from misc.state.Stateful: __metaclass__

Instance Methods [hide private]
 
__init__(self, felements, **kwargs)
Cheap initialization.
source code
 
__repr__(self)
repr(x)
source code
 
_getNElements(self, seq)
In derived classes has to return the number of elements to be processed given a sequence values forming the distribution.
source code
 
_setFElements(self, felements)
What fraction to discard
source code

Inherited from TailSelector: __call__

Inherited from TailSelector (private): _setTail

Inherited from ElementSelector (private): _setMode

Inherited from misc.state.Stateful: __getattribute__, __setattr__, __str__, reset

Inherited from object: __delattr__, __hash__, __new__, __reduce__, __reduce_ex__

Class Variables [hide private]
  _collections_template = {'states': <mvpa.misc.state.StateColle...

Inherited from ElementSelector: ndiscarded

Inherited from misc.state.Stateful (private): _initargs

Properties [hide private]
  felements

Inherited from ElementSelector: mode

Inherited from misc.state.Stateful: descr

Inherited from object: __class__

Method Details [hide private]

__init__(self, felements, **kwargs)
(Constructor)

source code 
Cheap initialization.
Parameters:
  • felements (float (0,1.0]) - Fraction of elements to select/discard. Note: Even when 0.0 is specified at least one element will be selected.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

_getNElements(self, seq)

source code 
In derived classes has to return the number of elements to be processed given a sequence values forming the distribution.
Overrides: TailSelector._getNElements
(inherited documentation)

Class Variable Details [hide private]

_collections_template

Value:
{'states': <mvpa.misc.state.StateCollection object at 0x895064c>}

Property Details [hide private]

felements

Get Method:
unreachable(x)
Set Method:
_setFElements(self, felements) - What fraction to discard