normalization: Accessors for the 'type' slot.

normalizationR Documentation

Accessors for the 'type' slot.

Description

This slot stores the name of normalization method. Normalization is defined using type argument in trainNBLDA function.

Usage

## S4 method for signature 'nblda'
normalization(object)

## S4 method for signature 'nblda_trained'
normalization(object)

Arguments

object

an nblda or nblda_trained object.

See Also

trainNBLDA

Examples

set.seed(2128)
counts <- generateCountData(n = 20, p = 10, K = 2, param = 1, sdsignal = 0.5, DE = 0.8,
                            allZero.rm = FALSE, tag.samples = TRUE)
x <- t(counts$x + 1)
y <- counts$y
xte <- t(counts$xte + 1)
ctrl <- nbldaControl(folds = 2, repeats = 2)

fit <- trainNBLDA(x = x, y = y, type = "mle", tuneLength = 10,
                  metric = "accuracy", train.control = ctrl)

normalization(fit)


NBLDA documentation built on March 18, 2022, 7:51 p.m.