Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Phelps, Nathan, Lizotte, Daniel J., Woolford, Douglas G.
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2412.16209
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914620991602688
author Phelps, Nathan
Lizotte, Daniel J.
Woolford, Douglas G.
author_facet Phelps, Nathan
Lizotte, Daniel J.
Woolford, Douglas G.
contents When using machine learning for imbalanced binary classification problems, it is common to subsample the majority class to create a (more) balanced training dataset. This biases the model's predictions because the model learns from data that is not fully representative of the underlying population of interest. One way of accounting for this bias is analytically mapping the resulting predictions to new values based on the sampling rate for the majority class. We show that calibrating a random forest this way has negative consequences, including prevalence estimates that depend on both the number of predictors considered at each split in the random forest and the sampling rate used. We explain the former using known properties of random forests and analytical calibration and the latter by demonstrating a bias in decision trees. In contradiction with much of the existing literature, we show that decision trees can be biased towards the minority class. These issues indicate that tree-based models trained on undersampled data should not be calibrated analytically. Calibration approaches that can learn a miscalibration pattern in the original model (e.g., beta calibration) are more suitable.
format Preprint
id arxiv_https___arxiv_org_abs_2412_16209
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Challenges in the calibration of tree-based models for imbalanced classification
Phelps, Nathan
Lizotte, Daniel J.
Woolford, Douglas G.
Machine Learning
When using machine learning for imbalanced binary classification problems, it is common to subsample the majority class to create a (more) balanced training dataset. This biases the model's predictions because the model learns from data that is not fully representative of the underlying population of interest. One way of accounting for this bias is analytically mapping the resulting predictions to new values based on the sampling rate for the majority class. We show that calibrating a random forest this way has negative consequences, including prevalence estimates that depend on both the number of predictors considered at each split in the random forest and the sampling rate used. We explain the former using known properties of random forests and analytical calibration and the latter by demonstrating a bias in decision trees. In contradiction with much of the existing literature, we show that decision trees can be biased towards the minority class. These issues indicate that tree-based models trained on undersampled data should not be calibrated analytically. Calibration approaches that can learn a miscalibration pattern in the original model (e.g., beta calibration) are more suitable.
title Challenges in the calibration of tree-based models for imbalanced classification
topic Machine Learning
url https://arxiv.org/abs/2412.16209