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))
}

Try the fastNaiveBayes package in your browser

Any scripts or data that you put into this service are public.

fastNaiveBayes documentation built on May 4, 2020, 5:09 p.m.