mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix optimizer callback best experiment
This commit is contained in:
parent
a80802ba6e
commit
0d0cc642e1
@ -1340,7 +1340,10 @@ class HyperParameterOptimizer(object):
|
||||
self._report_completed_tasks_best_results(set(completed_jobs.keys()), task_logger, title, counter)
|
||||
|
||||
def _report_completed_status(self, completed_jobs, cur_completed_jobs, task_logger, title, force=False):
|
||||
best_experiment = float('-inf'), None
|
||||
top_experiments = self.get_top_experiments(top_k=1)
|
||||
best_experiment = \
|
||||
(self.objective_metric.get_normalized_objective(top_experiments[0].id), top_experiments[0].id) \
|
||||
if top_experiments else (float('-inf'), None)
|
||||
if force or cur_completed_jobs != set(completed_jobs.keys()):
|
||||
pairs = []
|
||||
labels = []
|
||||
|
Loading…
Reference in New Issue
Block a user