binomial_naive_bayes: 'binomial_naive_bayes'

binomial_naive_bayesR Documentation

binomial_naive_bayes

Description

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

Usage

binomial_naive_bayes(x, y, prior = NULL, laplace = 1, ...)

Arguments

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

Value

return a binomial_naive_bayes object


minSNPs documentation built on May 29, 2024, 2:48 a.m.