MCPcopy
hub / github.com/facebookresearch/nevergrad / provide_recommendation

Method provide_recommendation

nevergrad/optimization/base.py:542–551  ·  view source on GitHub ↗

Provides the best point to use as a minimum, given the budget that was used Returns ------- p.Parameter The candidate with minimal value. p.Parameters have field :code:`args` and :code:`kwargs` which can be directly used on the function (:code:`object

(self)

Source from the content-addressed store, hash-verified

540 return candidate
541
542 def provide_recommendation(self) -> p.Parameter:
543 """Provides the best point to use as a minimum, given the budget that was used
544
545 Returns
546 -------
547 p.Parameter
548 The candidate with minimal value. p.Parameters have field :code:`args` and :code:`kwargs` which can be directly used
549 on the function (:code:`objective_function(*candidate.args, **candidate.kwargs)`).
550 """
551 return self.recommend() # duplicate method
552
553 def recommend(self) -> p.Parameter:
554 """Provides the best candidate to use as a minimum, given the budget that was used.

Callers 15

pareto_frontMethod · 0.95
minimizeMethod · 0.95
test_optimizers_suggestFunction · 0.80
_get_nashFunction · 0.80
check_optimizerFunction · 0.80
test_bo_orderingFunction · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
test_base_optimizerFunction · 0.80
test_optimize_and_dumpFunction · 0.80

Calls 1

recommendMethod · 0.95

Tested by 9

test_optimizers_suggestFunction · 0.64
check_optimizerFunction · 0.64
test_bo_orderingFunction · 0.64
test_base_optimizerFunction · 0.64
test_optimize_and_dumpFunction · 0.64
test_compareFunction · 0.64
test_base_exampleFunction · 0.64