Package org.tribuo.common.xgboost
Class XGBoostFeatureImportance.XGBoostFeatureImportanceInstance
java.lang.Object
org.tribuo.common.xgboost.XGBoostFeatureImportance.XGBoostFeatureImportanceInstance
- Enclosing class:
- XGBoostFeatureImportance
An instance of feature importance values for a single feature. See
XGBoostFeatureImportance
for details
on interpreting the metrics.-
Method Summary
Modifier and TypeMethodDescriptiondouble
getCover()
The number of examples a feature discriminates between.The feature name.double
getGain()
The information gain a feature provides when split on.double
The total number of examples a feature discrimnates between.double
The total gain across all times the feature is used to split.double
The number of times a feature is used in the model.toString()
-
Method Details
-
getFeatureName
The feature name.- Returns:
- The feature name.
-
getGain
public double getGain()The information gain a feature provides when split on.- Returns:
- The gain.
-
getCover
public double getCover()The number of examples a feature discriminates between.- Returns:
- The cover.
-
getWeight
public double getWeight()The number of times a feature is used in the model.- Returns:
- The number of times the feature is used to split.
-
getTotalGain
public double getTotalGain()The total gain across all times the feature is used to split.- Returns:
- The total gain.
-
getTotalCover
public double getTotalCover()The total number of examples a feature discrimnates between.- Returns:
- The total cover.
-
toString
-