Skip to content

Commit

Permalink
Exp return empty stats if no completed trials
Browse files Browse the repository at this point in the history
  • Loading branch information
bouthilx committed Mar 29, 2019
1 parent 625581e commit 896ec44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/orion/core/worker/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,8 @@ def stats(self):
'params': 1
}
completed_trials = self.fetch_trials(query, selection)
if not completed_trials:
return dict()
stats = dict()
stats['trials_completed'] = len(completed_trials)
stats['best_trials_id'] = None
Expand Down

0 comments on commit 896ec44

Please sign in to comment.