Calculate classification errors.

classErr(classQuery, classOriginal, labPerSample = NULL)

Arguments

classQuery

Character vector.

classOriginal

Character vector.

labPerSample

Integer.

Value

A list containing:

err

Numeric vector: the overall error rate and the balanced error rate (the mean of the per-class error rates).

byClassErrs

Named numeric vector of per-class error rates.