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

Method left_child

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

Left child ID of a node.

(self, node_id: int)

Source from the content-addressed store, hash-verified

94 return self.nodes[node_id].parent
95
96 def left_child(self, node_id: int) -> int:
97 """Left child ID of a node."""
98 return self.nodes[node_id].left
99
100 def right_child(self, node_id: int) -> int:
101 """Right child ID of a node."""

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected