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

Hierarchical shrinkage #692

Merged
merged 4 commits into from
May 16, 2024
Merged

Hierarchical shrinkage #692

merged 4 commits into from
May 16, 2024

Conversation

mnwright
Copy link
Member

Implements hierarchical shrinkage, as proposed by Agarwal et al. 2022. So far, it modifies the ranger object in-place.

Example usage, regression:

rf <- ranger(Sepal.Length ~ ., iris, node.stats = TRUE)
hshrink(rf, lambda = 5)

Probability:

rf <- ranger(Species ~ ., iris, num.trees = 1, node.stats = TRUE, probability = TRUE)
hshrink(rf, lambda = 5)

@mnwright mnwright merged commit e3047c6 into master May 16, 2024
9 checks passed
@mnwright mnwright deleted the hierarchical_shrinkage branch May 16, 2024 11:01
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.

1 participant