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

Dictionary

This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():

mlr_learners$get("classif.naive_bayes")
lrn("classif.naive_bayes")

See also

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifNaiveBayes

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerClassifNaiveBayes$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerClassifNaiveBayes$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

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