PoiNBFuzzyParamModel: Poisson Naive Bayes with Fuzzy Parameters (R6 class)

PoiNBFuzzyParamModelR Documentation

Poisson Naive Bayes with Fuzzy Parameters (R6 class)

Description

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

Super class

FuzzyClassifier -> PoiNBFuzzyParam

Methods

Public methods

Inherited methods

PoiNBFuzzyParam$new()

Create a new (untrained) classifier.

Usage
PoiNBFuzzyParam$new(
  alphacut = 1e-04,
  metd = 2,
  alp = c(0.35, 0.7, 0.86),
  w = c(0.1, 0.3, 0.6)
)
Arguments
alphacut

See PoiNBFuzzyParam().

metd

See PoiNBFuzzyParam().

alp

See PoiNBFuzzyParam().

w

See PoiNBFuzzyParam().


PoiNBFuzzyParam$clone()

The objects of this class are cloneable with this method.

Usage
PoiNBFuzzyParam$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

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