extract_params.naiveBayes: extract_params.naiveBayes

Description Usage Arguments Value Examples

Description

Extracts a parameters from an ensemble made by the naiveBayes function

Usage

1
2
## S3 method for class 'naiveBayes'
extract_params(object, threshold = 0.001, eps = 0, ...)

Arguments

object

an object of class "naiveBayes"

threshold

a value replacing cells with probabilities within eps range.

eps

a numeric for specifying an epsilon-range to apply laplace smoothing (to replace zero or close-zero probabilities by theshold.)

...

further arguments passed to or from other methods

Value

a list that is extracted from the naiveBayes object

Examples

1
2
model <- e1071::naiveBayes(Species ~ ., data=iris) 
model_params <- extract_params(model)

aurelius documentation built on May 2, 2019, 3:43 a.m.