MCPcopy Create free account
hub / github.com/dmlc/xgboost / CalcFeatureScore

Method CalcFeatureScore

src/learner.cc:1269–1275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1267 }
1268
1269 void CalcFeatureScore(std::string const& importance_type, common::Span<int32_t const> trees,
1270 std::vector<bst_feature_t>* features, std::vector<float>* scores) override {
1271 this->Configure();
1272 this->CheckModelInitialized();
1273
1274 gbm_->FeatureScore(importance_type, trees, features, scores);
1275 }
1276
1277 const std::map<std::string, std::string>& GetConfigurationArguments() const override {
1278 return cfg_;

Callers 2

XGBoosterFeatureScoreFunction · 0.80
TESTFunction · 0.80

Calls 3

CheckModelInitializedMethod · 0.80
ConfigureMethod · 0.45
FeatureScoreMethod · 0.45

Tested by 1

TESTFunction · 0.64