-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests for checking optimizer loading via run_args
- Loading branch information
Showing
13 changed files
with
239 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/test_yaml_run_args/test_run_args_by_neps_run/config_hyperband_mixed_args.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# args of optimizer from searcher kwargs (neps.run) and from run_args (yaml) | ||
|
||
run_pipeline: | ||
path: "tests/test_yaml_run_args/test_run_args_by_neps_run/neps_run.py" | ||
name: run_pipeline | ||
pipeline_space: "tests/test_yaml_run_args/test_run_args_by_neps_run/search_space_with_fidelity.yaml" | ||
root_directory: "tests_tmpdir/test_run_args_by_neps_run/optimizer_hyperband" | ||
|
||
max_evaluations_total: 5 | ||
max_cost_total: | ||
|
||
monitoring: | ||
overwrite_working_directory: true | ||
post_run_summary: false | ||
development_stage_id: None | ||
task_id: None | ||
|
||
parallelization_setup: | ||
max_evaluations_per_run: None | ||
continue_until_max_evaluation_completed: | ||
|
||
searcher: | ||
strategy: hyperband | ||
name: my_hyperband | ||
eta: 8 | ||
initial_design_type: max_budget | ||
use_priors: false | ||
|
||
|
||
pre_load_hooks: None |
41 changes: 41 additions & 0 deletions
41
tests/test_yaml_run_args/test_run_args_by_neps_run/config_priorband_with_args.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
run_pipeline: | ||
path: "tests/test_yaml_run_args/test_run_args_by_neps_run/neps_run.py" | ||
name: run_pipeline | ||
pipeline_space: "tests/test_yaml_run_args/test_run_args_by_neps_run/search_space_with_priors.yaml" | ||
root_directory: "tests_tmpdir/test_run_args_by_neps_run/optimizer_priorband" | ||
|
||
max_evaluations_total: 5 | ||
max_cost_total: | ||
|
||
monitoring: | ||
overwrite_working_directory: true | ||
post_run_summary: false | ||
development_stage_id: None | ||
task_id: None | ||
|
||
parallelization_setup: | ||
max_evaluations_per_run: None | ||
continue_until_max_evaluation_completed: | ||
|
||
searcher: | ||
strategy: "priorband" | ||
eta: 3 | ||
initial_design_type: max_budget | ||
prior_confidence: medium | ||
random_interleave_prob: 0.0 | ||
sample_default_first: true | ||
sample_default_at_target: false | ||
prior_weight_type: geometric | ||
inc_sample_type: mutation | ||
inc_mutation_rate: 0.5 | ||
inc_mutation_std: 0.25 | ||
inc_style: dynamic | ||
model_based: true | ||
modelling_type: joint | ||
initial_design_size: 5 | ||
surrogate_model: gp | ||
acquisition: EI | ||
log_prior_weighted: false | ||
acquisition_sampler: mutation | ||
|
||
pre_load_hooks: None |
23 changes: 23 additions & 0 deletions
23
tests/test_yaml_run_args/test_run_args_by_neps_run/config_select_bo.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
run_pipeline: | ||
path: "tests/test_yaml_run_args/test_run_args_by_neps_run/neps_run.py" | ||
name: run_pipeline | ||
pipeline_space: "tests/test_yaml_run_args/test_run_args_by_neps_run/search_space.yaml" | ||
root_directory: "tests_tmpdir/test_run_args_by_neps_run/optimizer_bo" | ||
|
||
max_evaluations_total: 5 | ||
max_cost_total: | ||
|
||
monitoring: | ||
overwrite_working_directory: true | ||
post_run_summary: false | ||
development_stage_id: None | ||
task_id: None | ||
|
||
parallelization_setup: | ||
max_evaluations_per_run: None | ||
continue_until_max_evaluation_completed: | ||
|
||
searcher: | ||
strategy: "bayesian_optimization" | ||
|
||
pre_load_hooks: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...n_args/test_run_args_by_neps_run/optimizer_yamls/hyperband_searcher_kwargs_yaml_args.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
searcher_name: my_hyperband | ||
searcher_alg: hyperband | ||
searcher_selection: user-run_args-yaml | ||
neps_decision_tree: false | ||
searcher_args: | ||
eta: 8 | ||
initial_design_type: max_budget | ||
use_priors: false | ||
random_interleave_prob: 0.9 | ||
sample_default_first: false | ||
sample_default_at_target: false |
23 changes: 23 additions & 0 deletions
23
...test_yaml_run_args/test_run_args_by_neps_run/optimizer_yamls/priorband_args_run_args.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
searcher_name: custom_priorband | ||
searcher_alg: priorband | ||
searcher_selection: user-run_args-yaml | ||
neps_decision_tree: false | ||
searcher_args: | ||
eta: 3 | ||
initial_design_type: max_budget | ||
prior_confidence: medium | ||
random_interleave_prob: 0.0 | ||
sample_default_first: true | ||
sample_default_at_target: false | ||
prior_weight_type: geometric | ||
inc_sample_type: mutation | ||
inc_mutation_rate: 0.5 | ||
inc_mutation_std: 0.25 | ||
inc_style: dynamic | ||
model_based: true | ||
modelling_type: joint | ||
initial_design_size: 5 | ||
surrogate_model: gp | ||
acquisition: EI | ||
log_prior_weighted: false | ||
acquisition_sampler: mutation |
13 changes: 13 additions & 0 deletions
13
tests/test_yaml_run_args/test_run_args_by_neps_run/optimizer_yamls/select_bo_run_args.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
searcher_name: custom_bayesian_optimization | ||
searcher_alg: bayesian_optimization | ||
searcher_selection: user-run_args-yaml | ||
neps_decision_tree: false | ||
searcher_args: | ||
initial_design_size: 10 | ||
surrogate_model: gp | ||
acquisition: EI | ||
log_prior_weighted: false | ||
acquisition_sampler: mutation | ||
random_interleave_prob: 0.0 | ||
disable_priors: true | ||
sample_default_first: false |
11 changes: 11 additions & 0 deletions
11
tests/test_yaml_run_args/test_run_args_by_neps_run/search_space_with_fidelity.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
epochs: | ||
lower: 1 | ||
upper: 3 | ||
is_fidelity: true | ||
learning_rate: | ||
lower: 1e-6 | ||
upper: 1e-1 | ||
log: False | ||
optimizer: | ||
choices: ["a", "b", "c"] | ||
batch_size: 64 |
15 changes: 15 additions & 0 deletions
15
tests/test_yaml_run_args/test_run_args_by_neps_run/search_space_with_priors.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
epochs: | ||
lower: 1 | ||
upper: 3 | ||
is_fidelity: True | ||
learning_rate: | ||
lower: 1e-6 | ||
upper: 1e-1 | ||
log: False | ||
default: 1e-3 | ||
default_confidence: "low" | ||
optimizer: | ||
choices: ["a", "b", "c"] | ||
default: "b" | ||
default_confidence: "high" | ||
batch_size: 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters