Skip to content

Commit b242c63

Browse files
committed
Fix copy of NumericalHyperparameterSettings for Python 2
1 parent 35634ea commit b242c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataikuapi/dss/ml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ def __setattr__(self, attr_name, value):
11301130
elif isinstance(value, NumericalHyperparameterSettings):
11311131
# algo.hyperparam = other_algo.other_hyperparam
11321132
target.set_range(min=value.range.min, max=value.range.max, nb_values=value.range.nb_values)
1133-
target.set_explicit_values(values=value.values.copy())
1133+
target.set_explicit_values(values=list(value.values))
11341134
target.definition_mode = value.definition_mode
11351135
else:
11361136
raise TypeError(("Invalid type for NumericalHyperparameterSettings {}\n" +

0 commit comments

Comments
 (0)