Percent: Percent of confusion matrix

Description Usage Arguments Details Value Author(s) Examples

View source: R/Personal_Functions.R

Description

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

Usage

1
Percent(true, test)

Arguments

true

The true values

test

the test values

Details

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

Value

the percent acc.

Author(s)

Travis Barton

Examples

1
2
3
4
5
6
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))

LilRhino documentation built on Oct. 31, 2019, 4:59 p.m.