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

Method SetLeafValue

src/boosting/gbdt.h:360–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 }
359
360 inline void SetLeafValue(int tree_idx, int leaf_idx, double val) override {
361 CHECK(tree_idx >= 0 && static_cast<size_t>(tree_idx) < models_.size());
362 CHECK(leaf_idx >= 0 && leaf_idx < models_[tree_idx]->num_leaves());
363 models_[tree_idx]->SetLeafOutput(leaf_idx, val);
364 }
365
366 /*!
367 * \brief Get Type name of this boosting object

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
num_leavesMethod · 0.45
SetLeafOutputMethod · 0.45

Tested by

no test coverage detected