predict.binomial_naive_bayes | R Documentation |
predict.binomial_naive_bayes
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 class 'binomial_naive_bayes'
predict(object, newdata = NULL, type = c("class", "prob"), ...)
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 |
return a factor or matrix of class probabilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.