Skip to content
Snippets Groups Projects
Commit 2816315c authored by tomrink's avatar tomrink
Browse files

minor...

parent f60c7853
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class GenericException(Exception):
class EarlyStop:
def __init__(self, window_length=3, patience=5):
self.patience = patience
self.min = np.finfo(np.single)
self.min = np.finfo(np.single).max
self.cnt = 0
self.cnt_wait = 0
self.window = np.zeros(window_length, dtype=np.single)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment