R/LearnerClassifNaiveBayes.R
mlr_learners_classif.naive_bayes.RdNaive Bayes classification.
Calls e1071::naiveBayes() from package e1071.
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")
mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifNaiveBayes
new()Creates a new instance of this R6 class.
LearnerClassifNaiveBayes$new()
clone()The objects of this class are cloneable with this method.
LearnerClassifNaiveBayes$clone(deep = FALSE)
deepWhether to make a deep clone.
if (requireNamespace("e1071")) { learner = mlr3::lrn("classif.naive_bayes") print(learner) # available parameters: learner$param_set$ids() }#>#> <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"