Catalano.MachineLearning.FeatureSelection
Class PrincipalComponentFeatureSelection
- java.lang.Object
-
- Catalano.MachineLearning.FeatureSelection.PrincipalComponentFeatureSelection
-
- All Implemented Interfaces:
- IUnsupervisionedFeatureSelection
public class PrincipalComponentFeatureSelection extends java.lang.Object implements IUnsupervisionedFeatureSelection
Principal components Feature Selection.
-
-
Constructor Summary
Constructors Constructor and Description PrincipalComponentFeatureSelection()Initializes a new instance of the PrincipalComponentFeatureSelection class.PrincipalComponentFeatureSelection(double percentage)Initializes a new instance of the PrincipalComponentFeatureSelection class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidCompute(double[][] input)Compute feature selection.int[]getFeatureIndex()Get the feature index.doublegetPercentage()Get the percentage.double[]getRank()Get the rank of the features.voidsetPercentage(double p)Set the percentage.
-
-
-
Constructor Detail
-
PrincipalComponentFeatureSelection
public PrincipalComponentFeatureSelection()
Initializes a new instance of the PrincipalComponentFeatureSelection class.
-
PrincipalComponentFeatureSelection
public PrincipalComponentFeatureSelection(double percentage)
Initializes a new instance of the PrincipalComponentFeatureSelection class.- Parameters:
percentage- Percentange
-
-
Method Detail
-
getPercentage
public double getPercentage()
Get the percentage.- Returns:
- Percentage.
-
setPercentage
public void setPercentage(double p)
Set the percentage.- Parameters:
p- Percentage.
-
getRank
public double[] getRank()
Description copied from interface:IUnsupervisionedFeatureSelectionGet the rank of the features.- Specified by:
getRankin interfaceIUnsupervisionedFeatureSelection- Returns:
- Rank of the features.
-
getFeatureIndex
public int[] getFeatureIndex()
Description copied from interface:IUnsupervisionedFeatureSelectionGet the feature index.- Specified by:
getFeatureIndexin interfaceIUnsupervisionedFeatureSelection- Returns:
- Feature index.
-
Compute
public void Compute(double[][] input)
Description copied from interface:IUnsupervisionedFeatureSelectionCompute feature selection.- Specified by:
Computein interfaceIUnsupervisionedFeatureSelection- Parameters:
input- Input.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG