Skip to content

Commit

Permalink
Fix copy of NumericalHyperparameterSettings for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
samronsin committed Jun 15, 2021
1 parent 35634ea commit b242c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataikuapi/dss/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ def __setattr__(self, attr_name, value):
elif isinstance(value, NumericalHyperparameterSettings):
# algo.hyperparam = other_algo.other_hyperparam
target.set_range(min=value.range.min, max=value.range.max, nb_values=value.range.nb_values)
target.set_explicit_values(values=value.values.copy())
target.set_explicit_values(values=list(value.values))
target.definition_mode = value.definition_mode
else:
raise TypeError(("Invalid type for NumericalHyperparameterSettings {}\n" +
Expand Down

0 comments on commit b242c63

Please sign in to comment.