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 TypeMethodDescriptiondoublegetCover()The number of examples a feature discriminates between.The feature name.doublegetGain()The information gain a feature provides when split on.doubleThe total number of examples a feature discrimnates between.doubleThe total gain across all times the feature is used to split.doubleThe number of times a feature is used in the model.toString()
-
Method Details
-
getFeatureName
-
getGain
-
getCover
The number of examples a feature discriminates between.- Returns:
- The cover.
-
getWeight
The number of times a feature is used in the model.- Returns:
- The number of times the feature is used to split.
-
getTotalGain
The total gain across all times the feature is used to split.- Returns:
- The total gain.
-
getTotalCover
The total number of examples a feature discrimnates between.- Returns:
- The total cover.
-
toString
-