R/fastNaiveBayes.R

Defines functions fastNaiveBayes.default fastNaiveBayes

Documented in fastNaiveBayes fastNaiveBayes.default

#' @export
#' @import Matrix
#' @rdname fastNaiveBayesF
fastNaiveBayes <- function(x, y, priors = NULL, laplace = 0, sparse = FALSE, check = TRUE, distribution = fnb.detect_distribution(x)){
  UseMethod("fastNaiveBayes")
}

#' @import Matrix
#' @export
#' @rdname fastNaiveBayesF
fastNaiveBayes.default <- function(x, y, priors = NULL, laplace = 0, sparse = FALSE, check = TRUE, distribution = fnb.detect_distribution(x)){
  return(fnb.train(x, y, priors, laplace, sparse, check, distribution))
}
mskogholt/fastNaiveBayes documentation built on May 10, 2020, 6:09 p.m.