comf (version 0.1.7)

calcAvgAcc: Calculating Average Accuracy between Predicted and Actual Thermal Sensation Vote

Description

calcAvgAcc calculates the average accuracy between predicted thermal sensation votes and actual obtained sensation votes

Usage

calcAvgAcc(ref, pred)

Arguments

ref

a numeric item or vector containing categorical actual thermal sensation votes coded from -3 'cold' to +3 'hot'

pred

a numeric item or vector containing categorical predicted thermal sensation votes coded from -3 'cold' to +3 'hot'

Value

calcAvgAcc returns a single value presenting the average accuracy between actual and predicted thermal sensation votes.

References

Sokolova, M. and Lapalme, G. A systematic analysis of performance measures for classification tasks, Information Processing & Management, Elsevier, 2009, 45, 427-437

See Also

see also calcTPRTSV, calcMeanBias

Examples

Run this code
# NOT RUN {
## Define data
ref <- rnorm(5) # actual thermal sensation votes
ref <- cutTSV(ref)

pred <- rnorm(5) # predicted thermal sensation votes
pred <- cutTSV(pred)

calcAvgAcc(ref, pred)
# }

Run the code above in your browser using DataLab