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




Try the parsnip package in your browser

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

parsnip documentation built on Aug. 18, 2023, 1:07 a.m.