getNBPriors: Get Naive-Bayes Priors

Description Usage Arguments Value

View source: R/getNBPriors.R

Description

This function computes the Naive-Bayes estimates of the priors p(+) and p(-).

Usage

1
getNBPriors(object)

Arguments

object

an object of class naiveBayes containing at least the tables of the likelihood of each word in the trained model.

Value

This function returns a matrix containg * p(-) = Under the label 0. * p(+) = Under the label 1.


roinaveiro/acAra documentation built on May 27, 2019, 1:47 p.m.