org.encog.ml.importance
Class FeatureRank
- java.lang.Object
-
- org.encog.ml.importance.FeatureRank
-
- All Implemented Interfaces:
- java.lang.Comparable<FeatureRank>
public class FeatureRank extends java.lang.Object implements java.lang.Comparable<FeatureRank>
The ranking/importance of an individual feature.
-
-
Constructor Summary
Constructors Constructor and Description FeatureRank(java.lang.String theName)Construct the feature ranking.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddWeight(double theWeight)Add weight to the total importance of this feature.intcompareTo(FeatureRank o)doublegetImportancePercent()java.lang.StringgetName()doublegetTotalWeight()voidsetImportancePercent(double importancePercent)Set the importance percent.voidsetTotalWeight(double totalWeight)Set the total weight.java.lang.StringtoString()
-
-
-
Constructor Detail
-
FeatureRank
public FeatureRank(java.lang.String theName)
Construct the feature ranking.- Parameters:
theName- The name of the feature.
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- The name of this feature.
-
addWeight
public void addWeight(double theWeight)
Add weight to the total importance of this feature.- Parameters:
theWeight- The weight to add.
-
getTotalWeight
public double getTotalWeight()
- Returns:
- The total weight.
-
setTotalWeight
public void setTotalWeight(double totalWeight)
Set the total weight.- Parameters:
totalWeight- The total weight.
-
getImportancePercent
public double getImportancePercent()
- Returns:
- The importance percent.
-
setImportancePercent
public void setImportancePercent(double importancePercent)
Set the importance percent.- Parameters:
importancePercent- The importance percent.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(FeatureRank o)
- Specified by:
compareToin interfacejava.lang.Comparable<FeatureRank>
-
-
DMelt 3.0 © DataMelt by jWork.ORG