mirror of
https://github.com/wassname/ray.git
synced 2026-08-17 11:25:34 +08:00
[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:
co-authored by
Ujval Misra
parent
a8bda9b551
commit
115468de2c
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user