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

Method is_numerical

demo/guide-python/model_parser.py:89–90  ·  view source on GitHub ↗
(self, node_id: int)

Source from the content-addressed store, hash-verified

87 return self.nodes[node_id].split_type == SplitType.categorical
88
89 def is_numerical(self, node_id: int) -> bool:
90 return not self.is_categorical(node_id)
91
92 def parent(self, node_id: int) -> int:
93 """Parent ID of a node."""

Callers 1

__str__Method · 0.95

Calls 1

is_categoricalMethod · 0.95

Tested by

no test coverage detected