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

r descr_models("naive_Bayes", "h2o")

Tuning Parameters

#| label: h2o-param-info
#| echo: false
defaults <- 
  tibble::tibble(parsnip = c("Laplace"),
                 default = c("0.0"))

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

This model has r nrow(param) tuning parameter:

#| label: h2o-param-list
#| echo: false
#| results: asis
param$item

[h2o::h2o.naiveBayes()] provides several engine arguments to deal with imbalances and rare classes:

Translation from parsnip to the original package

r uses_extension("naive_Bayes", "h2o", "classification")

[agua::h2o_train_nb()] is a wrapper around [h2o::h2o.naiveBayes()].

#| label: h2o-cls
naive_Bayes(Laplace = numeric(0)) |> 
  set_engine("h2o") |> 
  translate()

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.