Description Usage Arguments Value Examples
Compute posterior probabilities and class based on Naive Bayes Classifier
1 | predict.NBAYES(object_NBAYES, data_test, type="both", parallel=FALSE)
|
object_NBAYES |
an object of class NBAYES build using fit |
data_test |
a dataframe containing the variables to predict |
type |
a character type, it will define what the function will return. Can be "posterior", if the user want to get only the posterior probabilities for the different predict class. "class" which give the user only the modality of the prediction. And "both" that will return both "posterior" and "class" informations. |
parallel |
a logic that allow the user to compute the function using parallel computation. |
a dataframe containing the posterior probabilities, the predict class or both of them.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.