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

Method loss_change

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

Loss gain of a node.

(self, node_id: int)

Source from the content-addressed store, hash-verified

59 self.nodes = nodes
60
61 def loss_change(self, node_id: int) -> float:
62 """Loss gain of a node."""
63 return self.nodes[node_id].loss_chg
64
65 def sum_hessian(self, node_id: int) -> float:
66 """Sum Hessian of a node."""

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected