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

Method CategoricalDecisionInner

include/LightGBM/tree.h:280–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 inline int CategoricalDecisionInner(uint32_t fval, int node) const {
281 int cat_idx = static_cast<int>(threshold_in_bin_[node]);
282 if (Common::FindInBitset(cat_threshold_inner_.data() + cat_boundaries_inner_[cat_idx],
283 cat_boundaries_inner_[cat_idx + 1] - cat_boundaries_inner_[cat_idx], fval)) {
284 return left_child_[node];
285 }
286 return right_child_[node];
287 }
288
289 inline int Decision(double fval, int node) const {
290 if (GetDecisionType(decision_type_[node], kCategoricalMask)) {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
FindInBitsetFunction · 0.50

Tested by

no test coverage detected