View source: R/Personal_Functions.R
Percent | R Documentation |
For finding the accuracy of confusion matricies with true/pred values
Percent(true, test)
true |
The true values |
test |
the test values |
Make sure your strings have the right values and create a square matrix.
the percent acc.
Travis Barton
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.