Skip to content

Commit

Permalink
Adapt to new ConfigSpace API
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamc committed Jul 23, 2024
1 parent 98a0bf9 commit 4a343fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_runhistory/test_runhistory_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_transform(runhistory, make_scenario, configspace_small, configs):
# Categoricals are upperbounded by their size, rest of hyperparameters are
# upperbounded by 1.
upper_bounds = {
hp.name: (hp.get_size() - 1) if isinstance(hp, CategoricalHyperparameter) else 1.0
hp.name: (hp.size - 1) if isinstance(hp, CategoricalHyperparameter) else 1.0
for hp in configspace_small.get_hyperparameters()
}
# Need to ensure they match the order in the Configuration vectorized form
Expand Down

0 comments on commit 4a343fb

Please sign in to comment.