FuzzyHipergeometricNaiveBayesModel: Fuzzy Hypergeometric Naive Bayes (R6 class)

FuzzyHipergeometricNaiveBayesModelR Documentation

Fuzzy Hypergeometric Naive Bayes (R6 class)

Description

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

Super class

FuzzyClassifier -> FuzzyHipergeometricNaiveBayes

Methods

Public methods

Inherited methods

FuzzyHipergeometricNaiveBayes$new()

Create a new (untrained) classifier.

Usage
FuzzyHipergeometricNaiveBayes$new(fuzzy = TRUE)
Arguments
fuzzy

See FuzzyHipergeometricNaiveBayes().


FuzzyHipergeometricNaiveBayes$clone()

The objects of this class are cloneable with this method.

Usage
FuzzyHipergeometricNaiveBayes$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

model <- FuzzyHipergeometricNaiveBayesModel$new()
x <- data.frame(s1 = c(1, 2, 1, 2), n1 = c(5, 5, 6, 6))
y <- factor(c("A", "A", "B", "B"))
model$fit(train = x, cl = y)
model$predict(x)
model

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