Skip to content

Add H2O GBM support for boost_tree()#250

Merged
EmilHvitfeldt merged 4 commits into
mainfrom
h2o-boost-tree
Jul 21, 2026
Merged

Add H2O GBM support for boost_tree()#250
EmilHvitfeldt merged 4 commits into
mainfrom
h2o-boost-tree

Conversation

@EmilHvitfeldt

Copy link
Copy Markdown
Member

This adds tidypredict support for H2O gradient boosting models (H2ORegressionModel, H2OBinomialModel, H2OMultinomialModel), including boost_tree() parsnip models fitted with agua's "h2o_gbm" engine, for both regression and classification. Trees are pulled from the running H2O cluster and turned into nested case_when() expressions, so a live h2o.init() connection is required to build or evaluate a formula. Scope is limited to H2O's GBM (not its XGBoost) and the gaussian, bernoulli, and multinomial distributions. Addresses part of #232.

Test plan

H2O tests require a running cluster and are skipped otherwise. To run them locally with a cluster available: Rscript -e "devtools::test(filter = '^h2o')" and Rscript -e "devtools::test(filter = '^tidymodels')".

@EmilHvitfeldt
EmilHvitfeldt merged commit 8d22118 into main Jul 21, 2026
9 checks passed
@EmilHvitfeldt
EmilHvitfeldt deleted the h2o-boost-tree branch July 21, 2026 23:30
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.

1 participant