#| child: aaa.Rmd
#| include: false

r descr_models("logistic_reg", "h2o")

Tuning Parameters

#| label: h2o-param-info
#| echo: false
defaults <- 
  tibble::tibble(parsnip = c("penalty", "mixture"),
                 default = c("see below", "see below"))

param <-
logistic_reg() |> 
  set_engine("h2o") |> 
  make_parameter_list(defaults)

This model has r nrow(param) tuning parameters:

#| label: h2o-param-list
#| echo: false
#| results: asis
param$item
#| child: template-h2o-glm-penalty.Rmd
#| include: false

Translation from parsnip to the original package

[agua::h2o_train_glm()] for logistic_reg() is a wrapper around [h2o::h2o.glm()]. h2o will automatically picks the link function and distribution family or binomial responses.

#| label: h2o-reg
logistic_reg() |> 
  set_engine("h2o") |> 
  translate()

To use a non-default argument in [h2o::h2o.glm()], pass in as an engine argument to set_engine():

#| label: h2o-reg-engine
logistic_reg() |> 
  set_engine("h2o", compute_p_values = TRUE) |> 
  translate()

Preprocessing requirements

#| child: template-makes-dummies.Rmd
#| child: template-same-scale.Rmd

By default, [h2o::h2o.glm()] uses the argument standardize = TRUE to center and scale all numeric columns.

Initializing h2o

#| child: template-h2o-init.Rmd

Saving fitted model objects

#| child: template-bundle.Rmd


Try the parsnip package in your browser

Any scripts or data that you put into this service are public.

parsnip documentation built on June 8, 2025, 12:10 p.m.