build_model.naiveBayes {aurelius}R Documentation

build_model.naiveBayes

Description

Builds an entire PFA list of lists based on a naiveBayes

Usage

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

Arguments

object

a 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 of lists representation of the naiveBayes model that can be inserted into a cell or pool

Examples

model <- e1071::naiveBayes(Species ~ ., data=iris) 
model_built <- build_model(model)

[Package aurelius version 0.8.4 Index]