FuzzyTrapezoidalNaiveBayesModel: Fuzzy Trapezoidal Naive Bayes (R6 class)

FuzzyTrapezoidalNaiveBayesModelR Documentation

Fuzzy Trapezoidal Naive Bayes (R6 class)

Description

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

Super class

FuzzyClassifier -> FuzzyTrapezoidalNaiveBayes

Methods

Public methods

Inherited methods

FuzzyTrapezoidalNaiveBayes$new()

Create a new (untrained) classifier.

Usage
FuzzyTrapezoidalNaiveBayes$new(fuzzy = T)
Arguments
fuzzy

See FuzzyTrapezoidalNaiveBayes().


FuzzyTrapezoidalNaiveBayes$clone()

The objects of this class are cloneable with this method.

Usage
FuzzyTrapezoidalNaiveBayes$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

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

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