FuzzyBinomialNaiveBayesModel: Fuzzy Binomial Naive Bayes (R6 class)

FuzzyBinomialNaiveBayesModelR Documentation

Fuzzy Binomial Naive Bayes (R6 class)

Description

R6 implementation of the Fuzzy Binomial Naive Bayes classifier. Create the model with FuzzyBinomialNaiveBayesModel$new(), train it with ⁠$fit(train, cl)⁠ and classify new observations with ⁠$predict(newdata)⁠. The functional interface FuzzyBinomialNaiveBayes() trains and returns an object of this class.

Super class

FuzzyClassifier -> FuzzyBinomialNaiveBayes

Methods

Public methods

Inherited methods

FuzzyBinomialNaiveBayes$new()

Create a new (untrained) classifier.

Usage
FuzzyBinomialNaiveBayes$new(fuzzy = TRUE)
Arguments
fuzzy

See FuzzyBinomialNaiveBayes().


FuzzyBinomialNaiveBayes$clone()

The objects of this class are cloneable with this method.

Usage
FuzzyBinomialNaiveBayes$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

model <- FuzzyBinomialNaiveBayesModel$new()
x <- round(iris[, -5])
model$fit(train = x, cl = iris$Species)
head(model$predict(x))
head(model$predict(x, type = "prob"))
model

FuzzyClass documentation built on Oct. 22, 2026, 1:07 a.m.