Skip to content

[Refactor, Tree] Python tree class for modularity and consistency of BaseEstimator - #24746

Draft
adam2392 wants to merge 2 commits into
scikit-learn:mainfrom
neurodata:tree-refactor
Draft

adam2392 wants to merge 2 commits into
scikit-learn:mainfrom
neurodata:tree-refactor

Conversation

@adam2392

Copy link
Copy Markdown
Member

Reference Issues/PRs

Addresses the Python interface issue in #24000
Also is a follow up to refactoring of Criterion in #24678

This should be reviewed and merged after #24678

What does this implement/fix? Explain your changes.

This implements a change to the BaseDecisionTree class to enable i) consistency with the assumptions of a BaseEstimator and ii) modularity for subclassing of the BaseDecisionTree class.

consistency:

modularity:

Any other comments?

n/a

@adrinjalali

Copy link
Copy Markdown
Member

I wonder if some of the work done by @cakedev0 is superseding this PR.

@cakedev0

Copy link
Copy Markdown
Member

I don't think so. I haven't touched _classes.py a lot and I don't plan to.

@adam2392

Copy link
Copy Markdown
Member Author

Yeah the intent of these PR drafts were to show how we can move towards a more generalized interface to smooth the implementation of more advanced trees. E.g. oblique trees or convolutional trees.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants