Skip to content

support ranger (and therefore random forests) - #39

Merged
jack-davison merged 8 commits into
mainfrom
ranger
Jan 21, 2026
Merged

support ranger (and therefore random forests)#39
jack-davison merged 8 commits into
mainfrom
ranger

Conversation

@jack-davison

Copy link
Copy Markdown
Collaborator

This PR adds "ranger" as an engine option for build_dw_model() and tune_dw_model().

parsnip helps this carry through to the rest of the package relatively simply, with only a few small tweaks required.

These tweaks are mainly related to formatting importance as a number instead of a percentage (ranger gives you permutation importance, as opposed to %gain from boosted trees). The rest is documentation.

This PR is a bit of a proof of concept to show how easy it is to add new engines to deweather now it runs on parsnip. We don't necessarily have to support ranger (or any random forests).

@davidcarslaw

Copy link
Copy Markdown
Collaborator

This all seems to work well now - thanks Jack! Feel free to merge

@jack-davison
jack-davison merged commit 651a60a into main Jan 21, 2026
6 checks passed
@jack-davison
jack-davison deleted the ranger branch January 21, 2026 15:08
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.

2 participants