ranprob: Get P_a(x) as seen by the adversary

Description Usage Arguments Value Examples

View source: R/ranprob.R

Description

For a given attacked email this function computes the probability as seen by the adversary that classifier classifies this email as spam

Usage

1
ranprob(x, fit, var = 0.001)

Arguments

x

the ATTACKED email.

fit

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

Value

This function returns a P_a(x) as seen by the adversary

Examples

1
ranprob(x, fit)

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