utensil.random_search package¶
Module contents¶
- class utensil.random_search.ExponentialBetweenParam(left: 'Any', right: 'Any', otype: 'type')[source]¶
Bases:
utensil.random_search._random_search.RandomizedParam
- left: Any¶
- right: Any¶
- otype: type¶
- namedtuple utensil.random_search.ModelScore(model, score)¶
Bases:
namedtuple()
ModelScore(model, score)
- Fields
model – Alias for field number 0
score – Alias for field number 1
- class utensil.random_search.RandomizedChoices(*args: 'Enum')[source]¶
Bases:
utensil.random_search._random_search.RandomizedParam
- choice: Tuple[enum.Enum]¶
- class utensil.random_search.RandomizedConfig[source]¶
Bases:
abc.ABC
- get_config(model_id, seed=0) Tuple[Dict[str, Any], utensil.random_search._random_search.RandomizedConfig] [source]¶
- class utensil.random_search.RandomizedDispatcher(key_names: 'Union[str, Tuple[str]]', dispatch: 'Dict[Any, RandomizedConfig]')[source]¶
Bases:
object
- key_names: Union[str, Tuple[str]]¶
- dispatch: Dict[Any, utensil.random_search._random_search.RandomizedConfig]¶
- class utensil.random_search.RandomizedParam[source]¶
Bases:
abc.ABC
- classmethod create_randomized_param(param_type, options) utensil.random_search._random_search.RandomizedParam [source]¶
- class utensil.random_search.RandomSearch(logger=None)[source]¶
Bases:
abc.ABC
- abstract get_xy(tr_path, te_path) Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] [source]¶
- abstract do_training(sd_config: utensil.random_search._random_search.SeededConfig, train_x, train_y, idx) utensil.random_search._random_search.ModelScore [source]¶
- class utensil.random_search.SeededConfig(cid: 'int', base_seed: 'int', seed_r: 'Dict[str, Any]', config: 'RandomizedConfig', config_temp: 'RandomizedConfig')[source]¶
Bases:
object
- cid: int¶
- base_seed: int¶
- seed_r: Dict[str, Any]¶
- classmethod from_config_template(config_temp: utensil.random_search._random_search.RandomizedConfig, model_id: int, seed: int)[source]¶