Learn R Programming

D2C (version 1.2.1)

BER: Balanced Error Rate

Description

The balanced error rate is the average of the errors on each class: BER = 0.5*(FP/(TN+FP) + FN/(FN+TP)).

Usage

BER(Ytrue, Yhat)

Arguments

Ytrue
: binary numeric vector (made of 0 or 1) of real classes
Yhat
: binary numeric vector (made of 0 or 1) of predicted classes

Value

Balanced Error Rate $0 \le $ BER $ \le 1$