Description Usage Arguments Value
View source: R/classification.R
Two methods to compute accuracy from classifier
1 | get_accuracy(tbl, category_col, method = "choice")
|
tbl |
classifier output |
category_col |
name of column specifying true category |
method |
if 'choice' (default), accuracy is 1 if choice is correct, 0 if not. if 'posterior', accuracy is posterior probability of true category |
tbl with accuracy in column accuracy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.