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

Method spawn_child

nevergrad/parametrization/core.py:509–512  ·  view source on GitHub ↗
(self: P, new_value: tp.Optional[tp.Any] = None)

Source from the content-addressed store, hash-verified

507 return np.array([])
508
509 def spawn_child(self: P, new_value: tp.Optional[tp.Any] = None) -> P:
510 if new_value is not None:
511 self.value = new_value # check that it is equal
512 return self # no need to create another instance for a constant
513
514 def recombine(self: P, *others: P) -> None:
515 pass

Callers 15

recommendMethod · 0.45
suggestMethod · 0.45
askMethod · 0.45
recommendMethod · 0.45
_constraint_solverFunction · 0.45
check_optimizerFunction · 0.45
test_tell_not_askedFunction · 0.45

Calls

no outgoing calls

Tested by 15

check_optimizerFunction · 0.36
test_tell_not_askedFunction · 0.36
test_mo_constrainedFunction · 0.36
test_base_optimizerFunction · 0.36
test_parametrizationFunction · 0.36
test_inoculationFunction · 0.36
test_crowding_distanceFunction · 0.36
get_nsga2_test_case_dataFunction · 0.36
test_nsga2_ranking_4Function · 0.36