Skip to content

Commit

Permalink
Changed early stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgioMorales committed Jul 19, 2024
1 parent c73a9c6 commit b7b8c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PredictionIntervals/models/NNModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def trainFold(self, Xtrain, Ytrain, Xval, Yval, batch_size, epochs, filepath, pr
elif self.method == 'DualAQD' and epoch > 1000:
if not improved:
cnt += 1
if cnt == 2000:
if cnt == 2500:
print("Early stopping at epoch: ", epoch)
break
else:
Expand Down

0 comments on commit b7b8c20

Please sign in to comment.