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
a binomial_naive_bayes object
a matrix with numeric: 0,1,up to binomial_n columns
a character string specifying the type of output: "class" or "prob"
additional arguments
return a factor or matrix of class probabilities