Package PyML :: Package feature_selection :: Module featsel :: Class FeatureSelector
[frames] | no frames]

Class FeatureSelector

source code

object --+
         |
        FeatureSelector

api for feature selection objects
Instance Methods
 
select(self, data, *options, **args)
invokes selectFeatures to find predictive features and eliminates the rest of the features from the input dataset
source code
 
selectFeatures(self, data, *options, **args)
Returns: a list of predictive features
source code
 
score(self, data, **args)
Returns: a score for each feature in the input dataset
source code
 
rank(self, data, **args)
Returns: a ranking of the features in the dataset by converting the scores to ranks
source code
 
test(self, data, *options, **args) source code
 
train(self, data, *options, **args)
invokes selectFeatures to find predictive features and eliminates the rest of the features from the input dataset
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  type = 'featureSelector'
Properties

Inherited from object: __class__

Method Details

selectFeatures(self, data, *options, **args)

source code 
Returns:
a list of predictive features

score(self, data, **args)

source code 
Returns:
a score for each feature in the input dataset

rank(self, data, **args)

source code 
Returns:
a ranking of the features in the dataset by converting the scores to ranks