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
- 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 validation
- Optimal cut-point estimation with validation
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 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cutpointpy-2.0.2.tar.gz | 22.4 kB | Without provenance | Details for cutpointpy-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cutpointpy-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for cutpointpy-2.0.2-py3-none-any.whl |
Total release size: 42.9 kB
Release files / cutpointpy-2.0.2.tar.gz
| Download URL | cutpointpy-2.0.2.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85049c52599de29a1d2cfc6d81001e287dd32263ccc6aecaaf8569cd16a0a4db
|
|
BLAKE2b-256 checksum How to use checksums |
fc8d3321f13c06ef687b1329180e4cea95150c7f2e88a38f825ca1baee00444c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / cutpointpy-2.0.2-py3-none-any.whl
| Download URL | cutpointpy-2.0.2-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8faf7fa308845313f691628668cb9f28cf1da5d3008e837324af391d7f7c8357
|
|
BLAKE2b-256 checksum How to use checksums |
c3b9791ae27f760024515645424a135a25a913a0c804a8a2332015611ead5672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for cutpointpy 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.