Skip to content

Commit

Permalink
train: earlier check of stagnant loss
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Nov 29, 2023
1 parent d8317db commit c6e73e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpol/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def train(self, model, dataset):
)

# check early-on whether the loss isn't evolving
if count == 20:
if count == 10:# and self._scheduler is not None:
loss_arr = np.array(losses)
if all(0.9 <= loss_arr[:-1] / loss_arr[1:]) and all(
loss_arr[:-1] / loss_arr[1:] <= 1.1
Expand Down

0 comments on commit c6e73e9

Please sign in to comment.