|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml.feature.selection.FeatureSelection
jml.feature.selection.SupervisedFeatureSelection
public class SupervisedFeatureSelection
Abstract class for supervised feature selection algorithms.
Field Summary | |
---|---|
private int |
nClass
Number of classes. |
protected org.apache.commons.math.linear.RealMatrix |
Y
An n x c label matrix. |
Fields inherited from class jml.feature.selection.FeatureSelection |
---|
W, X |
Constructor Summary | |
---|---|
SupervisedFeatureSelection()
|
Method Summary | |
---|---|
void |
feedLabels(double[][] labels)
Feed labels for this supervised feature selection algorithm. |
void |
feedLabels(int[] labels)
Feed labels for this supervised feature selection algorithm. |
void |
feedLabels(org.apache.commons.math.linear.RealMatrix Y)
Feed labels for this supervised feature selection algorithm. |
org.apache.commons.math.linear.RealMatrix |
getY()
Get label matrix. |
void |
run()
Do feature selection. |
Methods inherited from class jml.feature.selection.FeatureSelection |
---|
feedData, feedData, getW, getX |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.math.linear.RealMatrix Y
private int nClass
Constructor Detail |
---|
public SupervisedFeatureSelection()
Method Detail |
---|
public void feedLabels(org.apache.commons.math.linear.RealMatrix Y)
Y
- an n x c label matrixpublic void feedLabels(double[][] labels)
labels
- an n x c 2D double
arraypublic void feedLabels(int[] labels)
labels
- any integer array holding the original
integer labelspublic void run()
FeatureSelection
run
in class FeatureSelection
public org.apache.commons.math.linear.RealMatrix getY()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |