[scikit-learn] Bugs in Tree.py

ALVARENGA GAMERO ALFONSO ABRAHAM alfonso82 at kaist.ac.kr
Tue Nov 29 10:06:09 EST 2016


sklearn/tree/tree.pyWith the new 0.18 version, it is possible to add percentages values for "min_samples_split"#.. versionchanged:: 0.18#Added float values for percentages.How ever, a value of 1 will make the program to issue an ValueError (lines 195-199), since 1 is an Integer and does not hold the condition of being bigge ror equal than 2. It is quite easy to solve by hand (if not 2 <= self.min_samples_split and self.min_samples_split != 1: in line 196), but I'm pretty sure there has to be a clever way to solve it. I might go back to that later, as there might be more bugs as this one with the new options in version 0.18.Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20161130/28ac2172/attachment.html>


More information about the scikit-learn mailing list