Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Add warning about early stopping not working
Browse files Browse the repository at this point in the history
  • Loading branch information
nsorros committed Feb 24, 2021
1 parent b10e2a5 commit f6d5eda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wellcomeml/ml/cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ def fit(self, X, Y=None, embedding_matrix=None, steps_per_epoch=None):
if train_steps_per_epoch == 0:
logger.warning(
"Not enough data for validation. Consider decreasing \
batch_size or validation_split"
batch_size or validation_split. Some features that \
rely on validation metrics like early stopping might \
not work"
)
else:
steps_per_epoch = train_steps_per_epoch
Expand Down

0 comments on commit f6d5eda

Please sign in to comment.