jml.feature.selection
Class FeatureSelection

java.lang.Object
  extended by jml.feature.selection.FeatureSelection
Direct Known Subclasses:
SupervisedFeatureSelection, UnsupervisedFeatureSelection

public abstract class FeatureSelection
extends java.lang.Object

Abstract class for feature selection algorithms.

Version:
1.0, Feb. 4th, 2012
Author:
Mingjie Qian

Field Summary
protected  org.apache.commons.math.linear.RealMatrix W
          A d x c projection matrix.
protected  org.apache.commons.math.linear.RealMatrix X
          Data matrix with each column being a data sample.
 
Constructor Summary
FeatureSelection()
           
 
Method Summary
 void feedData(double[][] data)
          Feed data for this feature selection algorithm.
 void feedData(org.apache.commons.math.linear.RealMatrix X)
          Feed data for this feature selection algorithm.
 org.apache.commons.math.linear.RealMatrix getW()
          Get the projection matrix.
 org.apache.commons.math.linear.RealMatrix getX()
          Get the data matrix.
abstract  void run()
          Do feature selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

protected org.apache.commons.math.linear.RealMatrix X
Data matrix with each column being a data sample.


W

protected org.apache.commons.math.linear.RealMatrix W
A d x c projection matrix.

Constructor Detail

FeatureSelection

public FeatureSelection()
Method Detail

feedData

public void feedData(org.apache.commons.math.linear.RealMatrix X)
Feed data for this feature selection algorithm.

Parameters:
X - a d x n data matrix with each column being a data sample

feedData

public void feedData(double[][] data)
Feed data for this feature selection algorithm.

Parameters:
data - a d x n 2D double array with each column being a data sample

run

public abstract void run()
Do feature selection.


getX

public org.apache.commons.math.linear.RealMatrix getX()
Get the data matrix.

Returns:
a d x n data matrix

getW

public org.apache.commons.math.linear.RealMatrix getW()
Get the projection matrix.

Returns:
a d x c projection matrix