Naive Bayes classification. Calls e1071::naiveBayes() from package e1071.

Format

R6::R6Class() inheriting from mlr3::LearnerClassif.

Construction

LearnerClassifNaiveBayes$new()
mlr3::mlr_learners$get("classif.naive_bayes")
mlr3::lrn("classif.naive_bayes")

See also

Examples

learner = mlr3::lrn("classif.naive_bayes") print(learner)
#> <LearnerClassifNaiveBayes:classif.naive_bayes> #> * Model: - #> * Parameters: list() #> * Packages: e1071 #> * Predict Type: response #> * Feature types: logical, integer, numeric, factor #> * Properties: multiclass, twoclass
# available parameters: learner$param_set$ids()
#> [1] "laplace"