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

Method is_deleted

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

Whether a node is deleted.

(self, node_id: int)

Source from the content-addressed store, hash-verified

106 return self.nodes[node_id].left == -1
107
108 def is_deleted(self, node_id: int) -> bool:
109 """Whether a node is deleted."""
110 return self.split_index(node_id) == np.iinfo(np.uint32).max
111
112 def __str__(self) -> str:
113 stack = [0]

Callers 1

__str__Method · 0.95

Calls 1

split_indexMethod · 0.95

Tested by

no test coverage detected