Learn R Programming

emil (version 2.2.10)

neg_gmpa: Negative geometric mean of class specific predictive accuracy

Description

When dealing with imbalanced classification problem, i.e. where the class sizes are very different, small classes tend to be overlooked when tuning parameters by optimizing error rate. Blagus and Lusa (2013) suggested to remedy the problem by using this performance measure instead.

Usage

neg_gmpa(truth, prediction, na.rm = FALSE)

Arguments

truth
prediction
na.rm

Whether to remove missing values or not.

Value

A numeric scalar.

References

Blagus, R., & Lusa, L. (2013). Improved shrunken centroid classifiers for high-dimensional class-imbalanced data. BMC bioinformatics, 14, 64. doi:10.1186/1471-2105-14-64

See Also

error_fun