Skip to content

Optimal decission tree for piecewise estimator #72

@m0wer

Description

@m0wer

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions