You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR:hyperopt.fmin:job exception: min_samples_leaf must be at least 1 or in (0, 0.5], got 4.0
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: