[tune] Repeated evals (#7366)

* easyrepeat

* done

* suggest

* doc

* ok

* commit

* Apply suggestions from code review

Co-Authored-By: Ujval Misra <misraujval@gmail.com>

* Apply suggestions from code review

Co-Authored-By: Ujval Misra <misraujval@gmail.com>

* Apply suggestions from code review

* ok

* docs

Co-authored-by: Ujval Misra <misraujval@gmail.com>
This commit is contained in:
Richard Liaw
2020-03-07 11:08:23 -08:00
committed by GitHub
co-authored by Ujval Misra
parent a8bda9b551
commit 115468de2c
14 changed files with 289 additions and 44 deletions
+3 -2
View File
@@ -86,7 +86,8 @@ class NevergradSearch(SuggestionAlgorithm):
self._metric_op = 1.
self._nevergrad_opt = optimizer
self._live_trial_mapping = {}
super(NevergradSearch, self).__init__(**kwargs)
super(NevergradSearch, self).__init__(
metric=metric, mode=mode, **kwargs)
# validate parameters
if hasattr(optimizer, "instrumentation"): # added in v0.2.0
if optimizer.instrumentation.kwargs:
@@ -108,7 +109,7 @@ class NevergradSearch(SuggestionAlgorithm):
raise ValueError("len(parameters_names) must match optimizer "
"dimension for non-instrumented optimizers")
def _suggest(self, trial_id):
def suggest(self, trial_id):
if self._num_live_trials() >= self._max_concurrent:
return None
suggested_config = self._nevergrad_opt.ask()