A Python package for estimating the optimal cut-point of a predictor variable (feature) for a binary classification task. It is loosely inspired by cutpointr, an optimal cut-point calculation package for R.
The main use cases of cutpointpy are:
- Optimal cut-point estimation
- Stability analysis of the estimated cut-points through bootstrapping
- Receiver-operating characteristic curve (ROC) analysis
Coming up soon
cutpointpy.core: contains the main class (CutpointCalculator) with functionsfind()andbootstrap()for optimal cut-point estimation and stability anslysis/validation through bootstrapping.cutpointpy.utils: contains ancillary functions including methods for computing performance parameters on binary classification tasks (e.g. accuracy, sensitivity, specificity and AUC)
Coming up soon.
- Hassanzad M., Hajian-Tilaki K. Methods of determining optimal cut-point of diagnostic biomarkers with application of clinical data in ROC analysis: an update review (2024) BMC Medical Research Methodology, 24 (1), art. no. 84
The package is still under development and not fully tested.