Skip to content

Commit

Permalink
fix reference before assignment victoresque#57
Browse files Browse the repository at this point in the history
  • Loading branch information
SunQpark committed Aug 27, 2019
1 parent 6bc9dac commit 4280218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def train(self):
"""
Full training logic
"""
not_improved_count = 0
for epoch in range(self.start_epoch, self.epochs + 1):
result = self._train_epoch(epoch)

Expand Down Expand Up @@ -90,7 +91,6 @@ def train(self):
"Model performance monitoring is disabled.".format(self.mnt_metric))
self.mnt_mode = 'off'
improved = False
not_improved_count = 0

if improved:
self.mnt_best = log[self.mnt_metric]
Expand Down

0 comments on commit 4280218

Please sign in to comment.