Hi,
I’m trying to use PB2 with hyper-parameters specified as follows:
search_space = {
'fast_period': [3,30],
'liquidate': [0,1],
'should_cancel': [True, False],
}
pb2 = PB2(
time_attr='training_iteration',
perturbation_interval=perturbation_interval,
require_attrs=False,
hyperparam_bounds=search_space
)
When i execute i run into an error because my trainable function requires parameters to be as integers.
Is there some way I can specify that the sampled hyperparameters should be integers when using the PB2 scheduler? I wasn’t able to find much in the docs.
with PBT i was able to specify integer perturbations like this :
hyperparams_mutations = {
'fast_period': tune.qrandint(3,30,1),
'liquidate': [0,1],
'should_cancel': [True, False],
}
search_space = {
'fast_period': tune.qrandint(3,30,1),
'liquidate': tune.choice([0,1]),
'should_cancel': tune.choice([True, False]),
}