Feature Selection

Recursive Feature Elimination

mlpy.rfe_w2(x, y, p, classifier)

RFE algorithm, where the ranking criteria is w^2, described in [Guyon02]. The algorithm works with only two classes. classifier must be an object with learn() and w() methods.

[Guyon02]
  1. Guyon, J. Weston, S. Barnhill and V. Vapnik. Gene Selection for Cancer Classification using Support Vector Machines. Machine Learning, 2002.
Parameters :
x: 2d array_like object (N,P)

training data

y : 1d array_like object integer (N)

class labels (only two classes)

p : float [0.0, 1.0]

percentage of features (upper rounded) to remove at each iteration (p=0 one variable)

classifier : object with learn() and w() methods

classifier object

Returns :
ranking : 1d numpy array int

feature ranking. ranking[i] contains the feature index ranked in i-th position.

mlpy.rfe_kfda(x, y, p, lmb, kernel)

KFDA-RFE algorithm based on the Rayleigh coefficient proposed in [Louw06]. The algorithm works with only two classes.

[Louw06]
  1. Louw and S. J. Steel. Variable selection in kernel Fisher discriminant analysis by means of recursive feature elimination. Journal Computational Statistics & Data Analysis, 2006.
Parameters :
x: 2d array_like object (N,P)

training data

y : 1d array_like object integer (N)

class labels (only two classes)

p : float [0.0, 1.0]

percentage of features (upper rounded) to remove at each iteration (p=0 one variable)

lmb : float (>= 0.0)

regularization parameter

kernel : mlpy.Kernel object.

kernel.

Returns :
ranking : 1d numpy array int

feature ranking. ranking[i] contains the feature index ranked in i-th position.

Table Of Contents

Previous topic

Algorithms for Feature Weighting

Next topic

Dimensionality Reduction

This Page