sklearn version 0.18 changed the min_samples_leaf and min_samples_split parameters of sklearn.tree.DecisionTreeClassifier to function differently if given integers or floats. Casting the default search space to integer to match old behaviour and prevent errors.
sklearn version 0.18 changed the
min_samples_leaf
andmin_samples_split
parameters ofsklearn.tree.DecisionTreeClassifier
to function differently if given integers or floats. Casting the default search space to integer to match old behaviour and prevent errors.