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

Record number of assignments for each leaf #1154

Merged
merged 1 commit into from
Apr 2, 2022

Conversation

varunagrawal
Copy link
Collaborator

This PR adds a new variable to DecisionTree::Leaf nodes so we can keep track of the number of assignments in each leaf.
Particularly useful when pruning is enabled as it avoids the need to inspect the internal structure of the decision tree.

@varunagrawal varunagrawal self-assigned this Mar 30, 2022
@varunagrawal
Copy link
Collaborator Author

@dellaert in case you didn't get a notification email.

@varunagrawal varunagrawal merged commit 99c01c4 into develop Apr 2, 2022
@varunagrawal varunagrawal deleted the decisiontree/nrAssignments branch April 2, 2022 14:01
@varunagrawal varunagrawal restored the decisiontree/nrAssignments branch April 2, 2022 14:21
@varunagrawal varunagrawal deleted the decisiontree/nrAssignments branch April 2, 2022 14:22
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.

2 participants