getNBlabel: NB classificator with utilities

Description Usage Arguments Value Examples

View source: R/getNBLabel.R

Description

For a given email, given utilities, and given parameters of NB classifier, this functions returns the label of the email calculated using NB algorithm

Usage

1
2
getNBlabel(x, fit, ut = matrix(c(1, -10, -1, 1), nrow = 2, byrow = T, dimnames
  = list(c("0", "1"), c("0", "1"))))

Arguments

x

the email.

fit

object of class naive-Bayes including the results from training.

Value

This function returns the label of the email, calculated with NB.

Examples

1
getNBlabel(x,fit,var)

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