predict.binomial_naive_bayes {minSNPs} | R Documentation |
predict.binomial_naive_bayes
Description
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
Usage
## S3 method for class '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
[Package minSNPs version 0.2.0 Index]