scikit-learn/scikit-learn — pull request #3359 by yelite (2014-07-10 07:54:19+00:00)
Title: Use float as percentage in min_samples_split and min_samples_leaf of DecisionTree

A float number can be used as percentage in these two parameters in case the sample size varies greatly.

I found a new parameter `min_weight_fraction_leaf` is added recently. It works in a similar way. But it is still convenient to use float in `min_samples_split` for those sample without weighting.