neurodata / treeple

Scikit-learn compatible decision trees beyond those offered in scikit-learn
https://treeple.ai
Other
65 stars 14 forks source link

ENH: Change `sktree.datasets.hyppo` simulations n_informative < n_dim from error to warning #278

Closed sampan501 closed 5 months ago

sampan501 commented 5 months ago

Is your feature request related to a problem? Please describe. When n_informative > n_dim we currently raise a ValueError. This means that every time we have a n_dim < 256, the user has to change both parameters.

Describe the solution you'd like When n_informative < n_dim, we should set n_informative = n_dim and then raise a warning that we did so.