Skip to main content

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 functions find() and bootstrap() 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.

References

  1. 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
  2. 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

Francesco Bianconi - bianco@ieee.org.

Metadata

Release files for cutpointpy 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cutpointpy 1.0.3
File Size Uploaded
cutpointpy-1.0.3.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cutpointpy 1.0.3
File Interpreter ABI Platform
cutpointpy-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 43.7 kB

Release files / cutpointpy-1.0.3.tar.gz

Download URL cutpointpy-1.0.3.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c64b9ccd5bbcadafaab47863d213f5092de05a2c77a49540a4c9228d41a26d96
BLAKE2b-256 checksum
How to use checksums
d7bd4dd579c9e8fb7dd5ff2df4ee35bd092e2cffd7bebf8c236c7284444a4f2f
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.3-py3-none-any.whl

Download URL cutpointpy-1.0.3-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
435c69a0d924c93b64a58faae2b9533568ee1e613beb12601b8cecf3cc19b3b5
BLAKE2b-256 checksum
How to use checksums
cb8445862dc0bd07d8d35bba32c0df6b4b2a5bdf6609f33e4c4d9510bb823860
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page