Learn R Programming

LilRhino (version 1.2.2)

Percent: Percent of confusion matrix

Description

For finding the accuracy of confusion matricies with true/pred values

Usage

Percent(true, test)

Arguments

true

The true values

test

the test values

Value

the percent acc.

Details

Make sure your strings have the right values and create a square matrix.

Examples

Run this code
# NOT RUN {
true <- rep(1:10, 10)
test <- rep(1:10, 10)
test[c(2, 22, 33, 89)] = 1
Percent(true, test)
#or
#percent(table(true, test))
# }

Run the code above in your browser using DataLab