syne_tune.experiments.launchers.hpo_main_common module
- class syne_tune.experiments.launchers.hpo_main_common.Parameter(name, type, help, default, required=False)[source]
Bases:
object
-
name:
str
-
type:
Any
-
help:
str
-
default:
Any
-
required:
bool
= False
-
name:
- class syne_tune.experiments.launchers.hpo_main_common.ConfigDict(**kwargs)[source]
Bases:
object
Dictinary with arguments for launcher scripts. Expected params as Parameter(name, type, default value)
- check_if_all_paremeters_present(desired_parameters)[source]
Verify that all the parameers present in desired_parameters can be found in this ConfigDict
- extra_parameters()[source]
Return all parameters beyond those required Required are the defauls and those requested in argparse
- Return type:
List
[Dict
[str
,Any
]]
- expand_base_arguments(extra_base_arguments)[source]
Expand the list of base argument for this experiment with those in extra_base_arguments
- static from_argparse(extra_args=None)[source]
Build the configuration dict from command line arguments
- Parameters:
extra_args (
Optional
[List
[Dict
[str
,Any
]]]) – Extra arguments for command line parser. Optional- Return type:
- syne_tune.experiments.launchers.hpo_main_common.get_metadata(seed, method, experiment_tag, benchmark_name, random_seed, max_size_data_for_model=None, benchmark=None, extra_metadata=None)[source]
Returns default value for
metadata
passed toTuner
.- Parameters:
seed (
int
) – Seed of repetitionmethod (
str
) – Name of methodexperiment_tag (
str
) – Tag of experimentbenchmark_name (
str
) – Name of benchmarkrandom_seed (
int
) – Master random seedmax_size_data_for_model (
Optional
[int
]) – Limits number of datapoints for surrogate model of BO, MOBSTER or HyperTunebenchmark (
Union
[SurrogateBenchmarkDefinition
,RealBenchmarkDefinition
,None
]) – Optional. Taken_workers
,max_wallclock_time
from thereextra_metadata (
Optional
[Dict
[str
,Any
]]) –metadata
updated by these at the end. Optional
- Return type:
Dict
[str
,Any
]- Returns:
Default
metadata
dictionary
- syne_tune.experiments.launchers.hpo_main_common.extra_metadata(args, extra_args)[source]
- Return type:
Dict
[str
,Any
]