Class XGBoostFeatureImportance.XGBoostFeatureImportanceInstance

java.lang.Object
org.tribuo.common.xgboost.XGBoostFeatureImportance.XGBoostFeatureImportanceInstance
Enclosing class:
XGBoostFeatureImportance

public static class XGBoostFeatureImportance.XGBoostFeatureImportanceInstance extends Object
An instance of feature importance values for a single feature. See XGBoostFeatureImportance for details on interpreting the metrics.
  • Method Details

    • getFeatureName

      public String 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

      public String toString()
      Overrides:
      toString in class Object