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

Add split statistics option #690

Merged
merged 8 commits into from
Nov 8, 2023
Merged

Add split statistics option #690

merged 8 commits into from
Nov 8, 2023

Conversation

mnwright
Copy link
Member

So far, save number of observations in each node and the prediction of each node. Example:

rf <- ranger(Species ~ ., iris, num.trees = 5, node.stats = TRUE)
rf$forest$num.samples.nodes
rf$forest$node.predictions

Fixed #541.

@mnwright
Copy link
Member Author

What other statistics do you need? The decrease in impurity, i.e. the split criterion?

@mnwright mnwright merged commit 9722742 into master Nov 8, 2023
8 checks passed
@mnwright mnwright deleted the split_stats branch November 8, 2023 09:01
@katavuk
Copy link

katavuk commented Nov 8, 2023

Perfect, thanks for adding the impurity decrease @mnwright!

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.

Acquire number of observation in each node.
2 participants