Package mvpa :: Package featsel :: Module base :: Class FeatureSelection
[hide private]
[frames] | no frames]

Class FeatureSelection

source code


Base class for any feature selection

Base class for Functors which implement feature selection on the datasets.

Nested Classes [hide private]

Inherited from misc.state.Stateful: __metaclass__

Instance Methods [hide private]
 
__call__(self, dataset, testdataset=None)
Invocation of the feature selection
source code
 
__init__(self, **kwargs)
Initialize Stateful object
source code

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

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

Class Variables [hide private]
  _collections_template = {'states': <mvpa.misc.state.StateColle...
  selected_ids = StateVariable(enabled= False)

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

Properties [hide private]

Inherited from misc.state.Stateful: descr

Inherited from object: __class__

Method Details [hide private]

__call__(self, dataset, testdataset=None)
(Call operator)

source code 

Invocation of the feature selection

Returns a tuple with the dataset containing the selected features. If present the tuple also contains the selected features of the test dataset. Derived classes must provide interface to access other relevant to the feature selection process information (e.g. mask, elimination step (in RFE), etc)

Parameters:
  • dataset (Dataset) - dataset used to select features
  • testdataset (Dataset) - dataset the might be used to compute a stopping criterion

__init__(self, **kwargs)
(Constructor)

source code 
Initialize Stateful object
Parameters:
  • enable_states - Names of the state variables which should be enabled additionally to default ones
  • disable_states - Names of the state variables which should be disabled
  • descr - Description of the instance
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_collections_template

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