Skip to content

Commit

Permalink
GH-48: Set train loss to current loss per default
Browse files Browse the repository at this point in the history
  • Loading branch information
tabergma committed Sep 28, 2018
1 parent a2975c2 commit 03258f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flair/trainers/text_classification_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def train(self,
log.info("EPOCH {0}: lr {1:.4f} - bad epochs {2}".format(epoch + 1, learning_rate, scheduler.num_bad_epochs))

dev_metric = train_metric = None
dev_loss = train_loss = '_'
dev_loss = '_'
train_loss = current_loss

if eval_on_train:
train_metric, train_loss = self._calculate_evaluation_results_for(
Expand Down

0 comments on commit 03258f3

Please sign in to comment.