Skip to content

Commit

Permalink
Merge pull request dynamicslab#80 from kratzert/fix-tester
Browse files Browse the repository at this point in the history
Fix evaluation of validation set outside of training.
  • Loading branch information
kratzert committed Feb 1, 2021
2 parents 7abf6c4 + 26cedc4 commit 0741029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuralhydrology/evaluation/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def evaluate(self,
for k, v in values.items():
results[basin][freq][k] = v

if (self.period == "validation") and (self.cfg.log_n_figures > 0):
if (self.period == "validation") and (self.cfg.log_n_figures > 0) and (experiment_logger is not None):
self._create_and_log_figures(results, experiment_logger, epoch)

if save_results:
Expand Down

0 comments on commit 0741029

Please sign in to comment.