Пример #1
0
def subject_to_static_config():
    return Cfg2Tune.load_cfg2tune(
        osp.join('configs', 'subject_to_static_config', 'cfg.py'))
Пример #2
0
def wrong_sequence_config():
    return Cfg2Tune.load_cfg2tune(
        osp.join('configs', 'wrong_sequence_config', 'cfg.py'))
Пример #3
0
def run_time_mutual_depend_config():
    return Cfg2Tune.load_cfg2tune(
        osp.join('configs', 'run_time_mutual_depend_config', 'cfg.py'))
Пример #4
0
def no_param_config():
    return Cfg2Tune.load_cfg2tune(
        osp.join('configs', 'no_param_config', 'cfg.py'))
Пример #5
0
def no_legal_val_config():
    return Cfg2Tune.load_cfg2tune(
        osp.join('configs', 'no_legal_val_config', 'cfg.py'))
Пример #6
0
def easy_config():
    return Cfg2Tune.load_cfg2tune(osp.join('configs', 'easy_config', 'cfg.py'))
Пример #7
0
def test_same_name_config():
    with pytest.raises(RuntimeError, match="for param2tune repeated."):
        Cfg2Tune.load_cfg2tune(
            osp.join('configs', 'same_name_config', 'cfg.py'))