syne_tune.optimizer.schedulers.searchers.last_value_multi_fidelity_searcher module
- class syne_tune.optimizer.schedulers.searchers.last_value_multi_fidelity_searcher.LastValueMultiFidelitySearcher(config_space, random_seed=None, points_to_evaluate=None, num_init_random_draws=5, update_frequency=1, max_fit_samples=None, searcher='kde', searcher_kwargs=None)[source]
Bases:
SingleObjectiveBaseSearcher- suggest(**kwargs)[source]
Suggest a new configuration.
Note: Query
_next_points_to_evaluate()for initial configs to return first.- Parameters:
kwargs – Extra information may be passed from scheduler to searcher
- Return type:
Optional[Dict[str,Any]]- Returns:
New configuration. The searcher may return None if a new configuration cannot be suggested. In this case, the tuning will stop. This happens if searchers never suggest the same config more than once, and all configs in the (finite) search space are exhausted.
- on_trial_complete(trial_id, config, metric, resource_level=None)[source]
Inform searcher about result
The scheduler passes every result. If
update == True, the searcher should update its surrogate model (if any), otherwiseresultis an intermediate result not modelled.The default implementation calls
_update()ifupdate == True. It can be overwritten by searchers which also react to intermediate results.- Parameters:
trial_id (
int) – Seeon_trial_result()config (
Dict[str,Any]) – Seeon_trial_result()metric (
float) – Seeon_trial_result()
- on_trial_result(trial_id, config, metric, resource_level=None)[source]
Inform searcher about result
The scheduler passes every result. If
update == True, the searcher should update its surrogate model (if any), otherwiseresultis an intermediate result not modelled.The default implementation calls
_update()ifupdate == True. It can be overwritten by searchers which also react to intermediate results.- Parameters:
trial_id (
int) – Seeon_trial_result()config (
Dict[str,Any]) – Seeon_trial_result()metric (
float) – Seeon_trial_result()