FuzzyBayesRuleModel: Fuzzy Bayes Rule (R6 class)

FuzzyBayesRuleModelR Documentation

Fuzzy Bayes Rule (R6 class)

Description

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

Super class

FuzzyClassifier -> FuzzyBayesRule

Methods

Public methods

Inherited methods

FuzzyBayesRule$new()

Create a new (untrained) classifier.

Usage
FuzzyBayesRule$new(fuzzy = TRUE)
Arguments
fuzzy

See FuzzyBayesRule().


FuzzyBayesRule$clone()

The objects of this class are cloneable with this method.

Usage
FuzzyBayesRule$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

model <- FuzzyBayesRuleModel$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.