org.encog.ml.importance
Class AbstractFeatureImportance
- java.lang.Object
-
- org.encog.ml.importance.AbstractFeatureImportance
-
- All Implemented Interfaces:
- FeatureImportance
- Direct Known Subclasses:
- CorrelationFeatureImportanceCalc, NeuralFeatureImportanceCalc, PerturbationFeatureImportanceCalc
public abstract class AbstractFeatureImportance extends java.lang.Object implements FeatureImportance
Provides basic functionality for a feature ranking algorithm.
-
-
Constructor Summary
Constructors Constructor and Description AbstractFeatureImportance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<FeatureRank>getFeatures()java.util.Collection<FeatureRank>getFeaturesSorted()MLRegressiongetModel()voidinit(MLRegression theModel, java.lang.String[] theFeatureNames)Initialize a modeljava.lang.StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.encog.ml.importance.FeatureImportance
performRanking, performRanking
-
-
-
-
Method Detail
-
init
public void init(MLRegression theModel, java.lang.String[] theFeatureNames)
Initialize a model- Specified by:
initin interfaceFeatureImportance- Parameters:
theModel- The model that will be used for ranking.theFeatureNames- The names of the fields.
-
getFeatures
public java.util.List<FeatureRank> getFeatures()
- Specified by:
getFeaturesin interfaceFeatureImportance- Returns:
- The individual rankings of each feature.
-
getFeaturesSorted
public java.util.Collection<FeatureRank> getFeaturesSorted()
- Specified by:
getFeaturesSortedin interfaceFeatureImportance- Returns:
- The features sorted by importance.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getModel
public MLRegression getModel()
- Specified by:
getModelin interfaceFeatureImportance- Returns:
- The model that was evaluated.
-
-
DMelt 3.0 © DataMelt by jWork.ORG