Optimal cut-point calculation of a predictor variable for binary classification tasks
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cutpointpy-1.0.0.post1.dev1.tar.gz.
File metadata
- Download URL: cutpointpy-1.0.0.post1.dev1.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb14b3ace245db4bc59a539a0a48f7b9e6d9fdc50e000d57051dddeecec0f054
|
|
| MD5 |
b8747fe9268509f7731fd09a86f3366a
|
|
| BLAKE2b-256 |
c82fc35eee913a2cfc1e620705cef90f3c12a95a772cf6dc8e43a36a2071a109
|
File details
Details for the file cutpointpy-1.0.0.post1.dev1-py3-none-any.whl.
File metadata
- Download URL: cutpointpy-1.0.0.post1.dev1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f841799ac78bbe995473289be3c1268cccfeec1625e7a9e8ab43141f97e2cf48
|
|
| MD5 |
e122f3959ca0e5d461d3047a342223e6
|
|
| BLAKE2b-256 |
71ad099d40af4346d963131a0b07e5eabb46743229fc37f06a9eb83d633065e4
|