r descr_models("naive_Bayes", "h2o")

Tuning Parameters

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:

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()].

naive_Bayes(Laplace = numeric(0)) %>% 
  set_engine("h2o") %>% 
  translate()

Initializing h2o


Saving fitted model objects




tidymodels/parsnip documentation built on Feb. 19, 2025, 2:10 a.m.