Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cutpointpy-1.0.2.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cutpointpy-1.0.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file cutpointpy-1.0.2.tar.gz.

File metadata

  • Download URL: cutpointpy-1.0.2.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

Hashes for cutpointpy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8691ce1c75593f1e31b95f69ab6fb52e76ca7ddd4e2204199f9ae19354741452
MD5 a3986156dba66c1785852af388e1ca6b
BLAKE2b-256 d93212f665defbd56bbe208311fecb322e4ff4c68f8c5d2f853f2baa36edd6ee

See more details on using hashes here.

File details

Details for the file cutpointpy-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: cutpointpy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for cutpointpy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d771bbe1b581714a328b2a63ddf74a2278eac9c1c8fa76b7ea38cbc55efba33f
MD5 246b339f8799aae1c1a41bb82ece25a6
BLAKE2b-256 efcd02f7ffe625afcccd4c9e98da5d1bb349e0f32d3e68c99ce614766296e2a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page