Open jwarley opened 3 years ago
Okay, this is related to https://github.com/hyperopt/hyperopt/issues/508
I'm currently fixing this in my local copy by replacing these lines by:
min_samples_split=scope.int(hp.uniformint(
_name('min_samples_split'),
2, 10)) if min_samples_split is None else min_samples_split,
min_samples_leaf=scope.int(hp.uniformint(
_name('min_samples_leaf'),
1, 5)) if min_samples_leaf is None else min_samples_leaf,
I can submit a PR if that seems like an acceptable solution.
Trying to train a decision tree
yields the following exception:
Since a float value of
min_samples_leaf
is interpreted as a percentage, this seems like possibly a failure to cast to int somewhere in the hpsklearn code.