predict.NB: Predictions for Naive Bayes Classifier

View source: R/predict.NB.R

predict.NBR Documentation

Predictions for Naive Bayes Classifier

Description

Naive Bayes Classifier predictions

Usage

## S3 method for class 'NB'
predict(object, newdata, expectation = NULL, threshold = c(0.001, 0.001), ...)

Arguments

object

density object

newdata

new data on which to make predictions

expectation

Variable to calculate conditional expectation wrt probabilities from NB classifier

threshold

Threshold parameters. First element defines the threshold on the probabilities and the second element the value to set those truncated probabilities to.

...

Additional arguments to lower level functions

Author(s)

Klaus K. Holst


targeted documentation built on May 29, 2024, 2:08 a.m.