Skip to content

Commit

Permalink
Merge pull request #6 from gkwt/main
Browse files Browse the repository at this point in the history
Added result files with plots
  • Loading branch information
gkwt authored Nov 28, 2024
2 parents 7c2c32f + 5d9852c commit de93c91
Show file tree
Hide file tree
Showing 16 changed files with 127 additions and 105 deletions.
Binary file modified examples/multi_objective/multi_objective_dye_lasers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
148 changes: 79 additions & 69 deletions examples/multi_objective/plot_results.ipynb

Large diffs are not rendered by default.

Binary file modified examples/multi_objective/results_moo_gp.pkl
Binary file not shown.
Binary file modified examples/multi_objective/results_moo_random.pkl
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/multi_objective/run_moo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

# config
dataset = Dataset(kind='dye_lasers')
NUM_RUNS = 10
BUDGET = 50
NUM_RUNS = 50
BUDGET = 200
NUM_INIT_DESIGN = 10

all_data = []
Expand Down
Binary file modified examples/unknown_constraints/constrained_braninconstr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 37 additions & 28 deletions examples/unknown_constraints/plot_results.ipynb

Large diffs are not rendered by default.

Binary file modified examples/unknown_constraints/results_fca-0.2.pkl
Binary file not shown.
Binary file added examples/unknown_constraints/results_fca-0.5.pkl
Binary file not shown.
Binary file added examples/unknown_constraints/results_fia-0.5.pkl
Binary file not shown.
Binary file modified examples/unknown_constraints/results_fia-1.pkl
Binary file not shown.
Binary file added examples/unknown_constraints/results_fia-2.pkl
Binary file not shown.
Binary file added examples/unknown_constraints/results_fwa.pkl
Binary file not shown.
Binary file modified examples/unknown_constraints/results_naive-0.pkl
Binary file not shown.
13 changes: 8 additions & 5 deletions examples/unknown_constraints/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
}
plan_args = plan_args[FLAGS.tag]

NUM_RUNS = 5
NUM_RUNS = 50
BUDGET = 100


#------
Expand All @@ -49,6 +50,8 @@
all_runs = []
for _ in range(NUM_RUNS):

print(f'RUN {_}')

campaign = Campaign() # define Olympus campaign object
campaign.set_param_space(surface.param_space)

Expand All @@ -62,7 +65,7 @@
planner.set_param_space(surface.param_space)


while len(campaign.observations.get_values()) < 25:
while len(campaign.observations.get_values()) < BUDGET:
samples = planner.recommend(
campaign.observations
) # ask planner for parameters (list of ParameterVectors)
Expand All @@ -76,11 +79,11 @@
x1_col = campaign.observations.get_params()[:, 1]

df = pd.DataFrame({
'param_0': x0_col,
'param_1': x1_col,
'x0': x0_col,
'x1': x1_col,
'obj': campaign.observations.get_values()
})

all_runs.append(df)

pickle.dump(all_runs, open(f"results_{FLAGS.tag}.pkl", "wb"))
pickle.dump(all_runs, open(f"results_{FLAGS.tag}.pkl", "wb"))
2 changes: 1 addition & 1 deletion src/atlas/planners/multi_fidelity/planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(
}

# check if we have any fidelity param dims specified
if not self.fidelity_params:
if self.fidelity_params is None:
Logger.log(
"You must specify at least one fidelity dimension to use this planner",
"FATAL",
Expand Down

0 comments on commit de93c91

Please sign in to comment.