binomial_naive_bayes | R Documentation |
binomial_naive_bayes
binomial_naive_bayes
is an implementation of the binomial naive bayes algorithm.
modified from bernoulli_naive_bayes function in the naivebayes package
binomial_naive_bayes(x, y, prior = NULL, laplace = 1, ...)
x |
a matrix with numeric: 0,1, up to binomial_n columns |
y |
a factor or character or logical vector |
prior |
a vector of prior probabilities |
laplace |
a numeric value for Laplace smoothing |
... |
additional arguments |
return a binomial_naive_bayes object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.