ultraopt.utils package¶
Submodules¶
ultraopt.utils.config_space module¶
-
ultraopt.utils.config_space.
CS2HyperoptSpace
(cs: ConfigSpace.configuration_space.ConfigurationSpace)[源代码]¶ 一个将configspace转hyperopt空间的函数
-
ultraopt.utils.config_space.
add_configs_origin
(configs: List[ConfigSpace.configuration_space.Configuration], origin)[源代码]¶
-
ultraopt.utils.config_space.
get_array_from_configs
(configs: List[ConfigSpace.configuration_space.Configuration])[源代码]¶
-
ultraopt.utils.config_space.
get_dict_from_config
(config: Union[dict, ConfigSpace.configuration_space.Configuration])[源代码]¶
-
ultraopt.utils.config_space.
is_top_level_activated
(config_space, config, hp_name, hp_value=None)[源代码]¶
ultraopt.utils.config_transformer module¶
ultraopt.utils.hash module¶
ultraopt.utils.logging_ module¶
ultraopt.utils.loss_transformer module¶
ultraopt.utils.misc module¶
ultraopt.utils.net module¶
ultraopt.utils.progress module¶
Progress is reported using context managers.
A progress context manager takes an initial and a total argument and should yield an object with an update(n) method.
-
ultraopt.utils.progress.
default_callback
(initial, total)¶ Use tqdm for progress by default
ultraopt.utils.std_out_err_redirect_tqdm module¶
Redirecting writing to tqdm (the progressbar).