NEWS | R Documentation |
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 newdata
in predict.naive_bayes
function do not match these defined in the naive_bayes object, then the calculation based on prior probabilities is done only for one row of newdata
Improvement: better handling (informative warnings/errors) in case of not correct inputs in 'predict.naive_bayes' function
Improvement: print.naive_bayes
fits now the console width
Fixed: when the data have two classes and they are not alphabetically ordered, the predicted classes are incorrect (bug found by Max Kuhn)
Fixed: when the prediction data has one row, the column names get dropped (bug found by Max Kuhn)