MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / PredictLeafIndex

Method PredictLeafIndex

src/boosting/gbdt_prediction.cpp:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void GBDT::PredictLeafIndex(const double* features, double* output) const {
84 int total_tree = num_iteration_for_pred_ * num_tree_per_iteration_;
85 for (int i = 0; i < total_tree; ++i) {
86 output[i] = models_[i]->PredictLeafIndex(features);
87 }
88}
89
90void GBDT::PredictLeafIndexByMap(const std::unordered_map<int, double>& features, double* output) const {
91 int total_tree = num_iteration_for_pred_ * num_tree_per_iteration_;

Callers 1

PredictorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected