Problem description
Given the class imbalance ratio, we recommend measuring the accuracy using the Area Under the Precision-Recall Curve (AUPRC). Confusion matrix accuracy is not meaningful for imbalanced classification. Regarding this, use linear machine learning models, such as random forests, logistic regression, or support vector machines, by applying over-or under-sampling techniques. Alternatively, we can try to find anomalies in the data, since an assumption like only a few fraud cases being anomalies within the whole dataset.
When dealing with such a severe imbalance of response labels, we also need to be careful when measuring model performance. Because there are only a handful of fraudulent instances, a model that predicts everything ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access