MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / EarlyStopException

Class EarlyStopException

python-package/lightgbmmt/callback.py:13–28  ·  view source on GitHub ↗

Exception of early stopping.

Source from the content-addressed store, hash-verified

11
12
13class EarlyStopException(Exception):
14 """Exception of early stopping."""
15
16 def __init__(self, best_iteration, best_score):
17 """Create early stopping exception.
18
19 Parameters
20 ----------
21 best_iteration : int
22 The best iteration stopped.
23 best_score : float
24 The score of the best iteration.
25 """
26 super(EarlyStopException, self).__init__()
27 self.best_iteration = best_iteration
28 self.best_score = best_score
29
30
31# Callback environment used by callbacks

Callers 2

_final_iteration_checkFunction · 0.85
_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected