-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
In piecewise_estimator.py the binner is trainned independently from the estimator.
For example the DecissionTreeRegressor
from sklearn is going to decide the splits minimizing the MSE (by default) which will lead to buckets optimized for that. But the optimal tree would be the one that minimizes the error of the regression model for the samples in each bucket.
I don't know a simple solution for this. It would be nice if the criterion parameter from sklearn.tree.DecisionTreeRegressor
could be a callable object (a custom function). Otherwise the process of building the tree might have to be done from scratch if this is idea is to be implemented.
IDK if this is related to #35, mentioning just in case.
Thanks for the great repo BTW :-)
Metadata
Metadata
Assignees
Labels
No labels