Skip to content

Commit

Permalink
Fixes #187.
Browse files Browse the repository at this point in the history
  • Loading branch information
oadams committed Oct 13, 2018
1 parent a216707 commit 0926356
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions persephone/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ def train(self, early_stopping_steps: int = 10, min_epochs: int = 30,
feed_dict=feed_dict)

train_ler_total += ler
else:
raise PersephoneError("No training data was provided."
" Check your batch generation.")

feed_dict = {self.batch_x: valid_x,
self.batch_x_lens: valid_x_lens,
Expand Down

0 comments on commit 0926356

Please sign in to comment.