Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New parameters for Hoeffding Tree Classifiers #1267

Merged
merged 1 commit into from
Jun 14, 2023
Merged

New parameters for Hoeffding Tree Classifiers #1267

merged 1 commit into from
Jun 14, 2023

Conversation

smastelini
Copy link
Member

Fixes #1169.

I added the max_share_to_split parameter, as discussed in the issue. Besides that, I also exposed another parameter that was inherited from MOA. This one prevents splitting when most of the data is concentrated in a single branch (regardless of the class distribution).

@smastelini
Copy link
Member Author

In the near future, I might refactor the split criteria classes. They deserve some love :D

Copy link
Member

@MaxHalford MaxHalford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

I agree that the splitting "submodule" could be improved a little. It would be nice to have a bunch of unit tests for it.

@smastelini
Copy link
Member Author

Yeap, they are too Java-styled and can be streamlined for sure!

On a side note, the failing tests seem to be unrelated to the PR.

@smastelini smastelini merged commit 0f5b844 into main Jun 14, 2023
9 of 11 checks passed
@smastelini smastelini deleted the pr/1169 branch June 14, 2023 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Splits happening on pure nodes.
2 participants