knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)

NaBa

Travis build status Codecov test coverage

Overview

NaBa is a machine learning classifier using naive Bayes algorithm, providing you a simple way to make predication for a new entry based on historical data:

You can learn more about them in vignette("NaBa").

Installation

# Install the package from Github
devtools::install_github("LiArAu/NaBa")

Usage

library(NaBa)
x=mood[,1:5]
y=mood[,6]
newdata=mood[1:20,1:5]
prior=NaBa::Info_prior(x,y)
prior
NaBa::predict_naBa(prior,newdata,"raw")
NaBa::predict_naBa(prior,newdata,"class")

Getting help

If you encounter a clear bug, please file a minimal reproducible example on github. For questions and other discussion, please send email to the maintainer.



LiArAu/NaBa documentation built on Nov. 27, 2019, 9:28 p.m.