Description Usage Arguments Value
View source: R/getNBProbabilities.R
This function computes the Naive-Bayes estimates of
p(x|+)
and p(x|-)
for a given x.
1 | getNBProbabilities(object, newdata, threshold = 0.001, eps = 0)
|
object |
an object of class naiveBayes containing at least the tables of the likelihood of each word in the trained model. |
newdata |
a dataframe containing the x for which we wanto to calculate
|
threshold |
value assigned to strictly probabilities <= eps. |
eps |
Threshold for low probabilities. |
This function returns a matrix containg
* p(x|-)
= Under the label 0.
* p(x|+)
= Under the label 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.