naivebayes 0.9.7
CRAN release: 2020-03-08
Improvement:
multinomial_naive_bayes(),bernoulli_naive_bayes(),poisson_naive_bayes()andgaussian_naive_bayes()now support sparse matrices (dgCMatrixclass from theMatrixPackage).Improvement: updated documentation.
Improvement: better informative errors.
naivebayes 0.9.6
CRAN release: 2019-06-03
Improvements:
Enhanced documentation - this includes a new webpage: https://majkamichal.github.io/naivebayes/
In
naive_bayes()Poisson distribution is now available to model class conditional probabilities of non-negative integer predictors. It is applied to all vectors with class “integer” via a new parameterusepoisson = TRUE. By defaultusepoisson = FALSE. Allnaive_bayesobjects created with previous versions are fully compatible with the0.9.6version.predict.naive_bayes()has a new parameterepsthat specifies a value of an epsilon-range to replace zero or close to zero probabilities by specified threshold. It applies to metric variables as well as to discrete variables, but only whenlaplace = 0.predict.naive_bayes()is now more efficient and reliable.print()method has been enhanced for better readability.plot()method allows now visualising class marginal and class conditional distributions for each predictor variable via new parameterprobwith two possible values:"marginal"or"conditional".
New functions
bernoulli_naive_bayes()- specialised version ofnaive_bayes(), where all features take on 0-1 values and each feature is modelled with the Bernoulli distribution.gaussian_naive_bayes()- specialised version ofnaive_bayes(), where all features are real valued and each feature is modelled with the Gaussian distribution.poisson_naive_bayes()- specialised version ofnaive_bayes(), where all features are non-negative integers and each feature is modelled with the Poisson distribution.nonparametric_naive_bayes()- specialised version ofnaive_bayes(), where all features are real valued and distribution of each is estimated with kernel density estimation (KDE).multinomial_naive_bayes()- specialised Naive Bayes classifier suitable for text classification.%class%and%prob%- infix operators that are shorthands for performing classification and obtaining posterior probabilities, respectively.coef()- a generic function which extracts model coefficients from specialized Naive Bayes objects.get_cond_dist()- for obtaining names of class conditional distributions assigned to features.
naivebayes 0.9.5
CRAN release: 2019-03-17
- Fixed: when
laplace > 0and discrete feature with>2distinct values, the probabilities in the probability table do not sum up to 1.
naivebayes 0.9.4
CRAN release: 2019-03-10
- Fixed:
plot.naive_bayes()crashes when missing data present in training set (bug found by Mark van der Loo).
naivebayes 0.9.3
CRAN release: 2019-01-07
Fixed: numerical underflow in predict.naive_bayes function when the number of features is big (bug found by William Townes).
Fixed: when all names of features in the
newdatainpredict.naive_bayes()do not match these defined in thenaive_bayesobject, then the calculation based on prior probabilities is done only for one row ofnewdata.Improvement: better handling (informative warnings/errors) of not correct inputs in
predict.naive_bayes().Improvement:
print.naive_bayes()is now more transparent.
