Accuracy {rfVarImpOOB}R Documentation

computes accuracy of a vector

Description

Accuracy is defined as the proportion of correct labels

Usage

Accuracy(y, yHat, dig = 8)

Arguments

y

vector of categorical/nominal values

yHat

prediction/estimate

dig

number of digits

Value

Accuracy defined as proportion of values equal to majority

Author(s)

Markus Loecher <Markus.Loecher@gmail.com>

Examples









Accuracy(c(rep(0,9),1), 1)


Accuracy(c(rep(0,9),1), 0)



[Package rfVarImpOOB version 1.0.3 Index]