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

Method split_categories

demo/guide-python/model_parser.py:81–83  ·  view source on GitHub ↗

Categories in a node.

(self, node_id: int)

Source from the content-addressed store, hash-verified

79 return self.nodes[node_id].split_cond
80
81 def split_categories(self, node_id: int) -> List[int]:
82 """Categories in a node."""
83 return self.nodes[node_id].categories
84
85 def is_categorical(self, node_id: int) -> bool:
86 """Whether a node has categorical split."""

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected