cutpointpy
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.
Main usage:
- Optimal cut-point estimation
- Stability analysis of the estimated cut-points through bootstrapping
- Receiver-operating characteristic curve (ROC) analysis
Installation
pip install cutpointpy
Structure
cutpointpy.core: contains the main class (CutpointCalculator) with functionsfind()andbootstrap()respectively for optimal cut-point estimation and stability analysis/validation through bootstrapping.cutpointpy.utils: contains ancillary functions including methods for computing performance parameters on binary classification tasks (e.g. confusion matrices, accuracy, sensitivity, specificity and AUC)
Usage
We recommend the following marimo notebooks to get started with cutpointpy.
- Optimal cut-point estimation without bootstrapping
- Optimal cut-point estimation with bootstrapping
References
- Baratloo, A., Hosseini, M., Negida, A., El Ashal, G. Part 1: simple definition and calculation of accuracy, sensitivity and specificity (2015) Emergency 3(2):48-49
- 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
Contacts
Metadata
Release files for cutpointpy 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cutpointpy-1.0.4.tar.gz | 22.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cutpointpy-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.7 kB
Release files / cutpointpy-1.0.4.tar.gz
| Download URL | cutpointpy-1.0.4.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
408d76b9aba30e62377ad6d7cae53fb1660407ca48a9912f3f7f4192082c2ef5
|
|
BLAKE2b-256 checksum How to use checksums |
e0c33c1d47d75b8a7982642639d7299ec7af7c49e887599b3195e9fdde92feec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / cutpointpy-1.0.4-py3-none-any.whl
| Download URL | cutpointpy-1.0.4-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8836751f875ff5a23c622945771accc5aa129777c044d9da17f509d05050a8c7
|
|
BLAKE2b-256 checksum How to use checksums |
0bbfb8d4bc09db68aa16ec1df1d3820f88877a341533350a632b807d5967ebd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|