|
| counter |
| counts how many times training is not getting better
|
|
| best_result |
| saves best training result
|
|
Using class to stop training early if it's not getting better
Definition at line 20 of file relations.py.
◆ __init__()
init class
Definition at line 23 of file relations.py.
28 self.best_result = np.inf
◆ check()
Check if validation result is better than the best validation result.
Decide if training should be continued.
Definition at line 30 of file relations.py.
The documentation for this class was generated from the following file: