misclassification: Calculate misclassification error

Description Usage Arguments Value Examples

Description

misclassification calculate misclassification error between predicted class and true class

Usage

1
misclassification(pred, true)

Arguments

pred

Predicted class

true

Actual class

Value

misclassification error

Examples

1
2
3
Y1 <- rbinom(10,1,0.5)
Y2 <- rnorm(10,1,0.5)
misclassification(Y1,Y2)

xtune documentation built on May 24, 2019, 9:01 a.m.