Skip to content

Commit e17fcbd

Browse files
committed
Adapted example to new API
1 parent fe16844 commit e17fcbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/record_minimal_run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414
configspace.add_hyperparameters([alpha, beta, gamma])
1515

16-
accuracy = Objective('accuracy', lower=0, upper=1)
16+
accuracy = Objective('accuracy', lower=0, upper=1, optimize="upper")
1717
time = Objective('time')
18+
save_path = "logs/DeepCAVE"
1819

19-
with Recorder(configspace, objectives=[accuracy, time]) as r:
20+
with Recorder(configspace, objectives=[accuracy, time], save_path=save_path) as r:
2021
for config in configspace.sample_configuration(100):
2122
for budget in [20, 40, 60]:
2223
r.start(config, budget)

0 commit comments

Comments
 (0)