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

Method right_child

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

Right child ID of a node.

(self, node_id: int)

Source from the content-addressed store, hash-verified

98 return self.nodes[node_id].left
99
100 def right_child(self, node_id: int) -> int:
101 """Right child ID of a node."""
102 return self.nodes[node_id].right
103
104 def is_leaf(self, node_id: int) -> bool:
105 """Whether a node is leaf."""

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected