Skip to content

Commit

Permalink
add quantization to ConfigurationSpace parameters in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
motus committed Aug 8, 2024
1 parent 2b6c863 commit 6c5401b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
UniformFloatHyperparameter,
UniformIntegerHyperparameter,
)
from ConfigSpace.hyperparameters import NumericalHyperparameter

from mlos_bench.optimizers.convert_configspace import (
TunableValueKind,
_monkey_patch_quantization,
_tunable_to_configspace,
special_param_names,
tunable_groups_to_configspace,
Expand Down Expand Up @@ -101,6 +103,9 @@ def configuration_space() -> ConfigurationSpace:
TunableValueKind.RANGE,
)
)
hp = spaces["kernel_sched_latency_ns"]
assert isinstance(hp, NumericalHyperparameter)
_monkey_patch_quantization(hp, quantization_bins=10)
return spaces


Expand Down

0 comments on commit 6c5401b

Please sign in to comment.