knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
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:
Info_prior()
gives you several outputs summarizing the prior information.
predict_naBa()
calculates probablity of having each response.
You can learn more about them in vignette("NaBa")
.
# Install the package from Github devtools::install_github("LiArAu/NaBa")
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")
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.