predict.naive_bayes: Predictions for Naive Bayes

Description Usage Arguments Value

View source: R/naive_bayes.R

Description

Makes predictions based on the fitted naive_bayes model by using a Gaussian assumption that each variable is normally ditributed.

Usage

1
2
## S3 method for class 'naive_bayes'
predict(object, x_new, ...)

Arguments

object

instance of naive_bayes class

x_new

test data matrix with observations as rows and features as columns

Value

predicted class labels


andreabecsek/NaiveBayes documentation built on Jan. 19, 2020, 12:49 p.m.