public class XGBoostFeatureImportance extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XGBoostFeatureImportance.XGBoostFeatureImportanceInstance
An instance of feature importance values for a single feature.
|
Modifier and Type | Method and Description |
---|---|
LinkedHashMap<String,Double> |
getCover()
Cover measures the number of examples a given feature discriminates across, relative to the total
number of examples all features discriminate across.
|
LinkedHashMap<String,Double> |
getCover(int numFeatures)
Cover measures the number of examples a given feature discriminates across, relative to the total.
|
LinkedHashMap<String,Double> |
getGain()
Gain measures the improvement in accuracy that a feature brings to the branches on which it appears.
|
LinkedHashMap<String,Double> |
getGain(int numFeatures)
Gain measures the improvement in accuracy that a feature brings to the branches on which it appears.
|
List<XGBoostFeatureImportance.XGBoostFeatureImportanceInstance> |
getImportances()
Gets all the feature importances for all the features.
|
List<XGBoostFeatureImportance.XGBoostFeatureImportanceInstance> |
getImportances(int numFeatures)
Gets the feature importances for the top n features sorted by gain.
|
LinkedHashMap<String,Double> |
getTotalCover()
Total Cover is similar to cover, but not locally averaged by weight, and thus not skewed in the way that
weight can be skewed.
|
LinkedHashMap<String,Double> |
getTotalCover(int numFeatures)
Total Cover is similar to cover, but not locally averaged by weight, and thus not skewed in the way that
weight can be skewed.
|
LinkedHashMap<String,Double> |
getTotalGain()
Total Gain is similar to gain, but not locally averaged by weight, and thus not skewed in the way that
weight can be skewed.
|
LinkedHashMap<String,Double> |
getTotalGain(int numFeatures)
Total Gain is similar to gain, but not locally averaged by weight, and thus not skewed in the way that
weight can be skewed.
|
LinkedHashMap<String,Double> |
getWeight()
Weight measures the number a times a feature occurs in the model.
|
LinkedHashMap<String,Double> |
getWeight(int numFeatures)
Weight measures the number a times a feature occurs in the model.
|
String |
toString() |
public LinkedHashMap<String,Double> getGain()
public LinkedHashMap<String,Double> getGain(int numFeatures)
numFeatures
- number of features to returnpublic LinkedHashMap<String,Double> getCover()
public LinkedHashMap<String,Double> getCover(int numFeatures)
numFeatures
- number of features to returnpublic LinkedHashMap<String,Double> getWeight()
public LinkedHashMap<String,Double> getWeight(int numFeatures)
numFeatures
- number of features to returnpublic LinkedHashMap<String,Double> getTotalGain()
public LinkedHashMap<String,Double> getTotalGain(int numFeatures)
numFeatures
- number of features to returnpublic LinkedHashMap<String,Double> getTotalCover()
public LinkedHashMap<String,Double> getTotalCover(int numFeatures)
numFeatures
- number of features to returnpublic List<XGBoostFeatureImportance.XGBoostFeatureImportanceInstance> getImportances()
public List<XGBoostFeatureImportance.XGBoostFeatureImportanceInstance> getImportances(int numFeatures)
numFeatures
- number of features to returnCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.