predict.binomial_naive_bayes is an implementation of the predict method for the binomial naive bayes algorithm. modified from bernoulli_naive_bayes function in the naivebayes package

# S3 method for binomial_naive_bayes
predict(object, newdata = NULL, type = c("class", "prob"), ...)

Arguments

object

a binomial_naive_bayes object

newdata

a matrix with numeric: 0,1,up to binomial_n columns

type

a character string specifying the type of output: "class" or "prob"

...

additional arguments

Value

return a factor or matrix of class probabilities