get_accuracy: Two methods to compute accuracy from classifier

Description Usage Arguments Value

View source: R/classification.R

Description

Two methods to compute accuracy from classifier

Usage

1
get_accuracy(tbl, category_col, method = "choice")

Arguments

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

Value

tbl with accuracy in column accuracy


kleinschmidt/phondisttools documentation built on May 20, 2019, 5:57 p.m.