calcPerformance: Function to calculate performance of a classification model

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculates several performance metrics.

Usage

1
calcPerformance(annotations, predictions, winSize, names=NULL, combineStanding=FALSE)

Arguments

annotations

Path to file containing bout-level annotations, a directory of files containing bout-level annotations, or a directory of instance-level annotations (i.e., the output of funciton annotationsToLabels).

predictions

Path to directory containing predictions (i.e., the saveDir argument to the function classify).

winSize

Window size in seconds.

names

(Optional) List of identifiers to use.

combineStanding

logical: combine standing still and standing moving into a single category?

Value

Object containing confusion matrix and several performance metrics.

Author(s)

Katherine Ellis

See Also

confusionMatrix

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

# compute the performance of a model on a dataset
myAnnotations="~/myStudy/annotations.csv"
myPredictions="~/myStudy/myModelPredictions"
WS=60
calcPerformance(annotations=myAnnotations, predictions=myPredictions, winSize=WS)

## End(Not run)

TLBC documentation built on May 1, 2019, 8:44 p.m.