syne_tune.optimizer.schedulers.searchers.utils.exclusion_list module

class syne_tune.optimizer.schedulers.searchers.utils.exclusion_list.ExclusionList(hp_ranges, configurations=None)[source]

Bases: object

Maintains exclusion list of configs, to avoid choosing configs several times. In fact, self.excl_set maintains a set of match strings.

The exclusion list contains non-extended configs, but it can be fed with and queried with extended configs. In that case, the resource attribute is removed from the config.

Parameters:
  • hp_ranges (HyperparameterRanges) – Encodes configurations to vectors

  • configurations (Union[List[Dict[str, Union[int, float, str]]], Set[str], None]) – Initial configurations. Default is empty

contains(config)[source]
Return type:

bool

add(config)[source]
copy()[source]
Return type:

ExclusionList

config_space_exhausted()[source]
Return type:

bool

get_state()[source]
Return type:

Dict[str, Any]

clone_from_state(state)[source]
class syne_tune.optimizer.schedulers.searchers.utils.exclusion_list.ExclusionListFromState(state, filter_observed_data=None)[source]

Bases: ExclusionList