fix deprecated comparison to string in GP
@@ -283,6 +283,7 @@ def test_set_get_params():
index = 0
params = kernel.get_params()
for hyperparameter in kernel.hyperparameters:
+ if isinstance("string", type(hyperparameter.bounds)):
if hyperparameter.bounds == "fixed":
continue
size = hyperparameter.n_elements
@@ -298,6 +299,7 @@ def test_set_get_params():
index = 0
value = 10 # arbitrary value
for hyperparameter in kernel.hyperparameters:
+ if isinstance("string", type(hyperparameter.bounds)):
if hyperparameter.bounds == "fixed":
continue
size = hyperparameter.n_elements
