Learn R Programming

EvaluationMeasures (version 1.1.0)

EvaluationMeasures.table: EvaluationMeasures.table

Description

Specify the number of TP,TN,FP,FN

Usage

EvaluationMeasures.table(Real, Predicted, Positive = 1)

Arguments

Real
Real binary values of the class
Predicted
Predicted binary values of the class
Positive
Consider 1 label as Positive Class unless changing this parameter to 0

Value

TP,TN,FP,FN

Details

By getting the predicted values and real values calulate the number of True positive samples, False Negative, False Positive and True Negative

Examples

Run this code
EvaluationMeasures.table(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,0,0,0))

Run the code above in your browser using DataLab