Skip to main content

Python implementation of Slope Error Rate (SER) by Arsalan Rahman Mirza.

Project description

Slope Error Rate (SER)

A Python implementation of Slope Error Rate (SER) a novel performance evaluation metric for binary classification, designed to provide improved sensitivity and robustness under class imbalance, particularly for biometric authentication systems.

Overview

Slope Error Rate (SER) is a distance-based evaluation metric that quantifies the trade-off between False Acceptance Rate (FAR) and False Rejection Rate (FRR) across decision thresholds. Unlike traditional metrics such as Equal Error Rate (EER), which rely on a single operating point, SER captures error dynamics and provides a more informative assessment of classifier behavior.

SER is especially useful in applications where:

Data is highly imbalanced False positives and false negatives have asymmetric costs Threshold sensitivity matters

A lower SER value indicates better overall performance.

Key Features Designed for binary classification Robust under class imbalance Threshold-sensitive evaluation Based on FAR and FRR geometry Lightweight and easy to integrate Suitable for biometrics, spoof detection, anomaly detection, and security systems

to install write

pip install slope-er==0.1.3

to use write

import slope_er

Call the function

result = slope_er.ser(0.3, 0.7,True)

print(f"The Slope Error Rate is: {result}")

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

slope_er-0.1.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

slope_er-0.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file slope_er-0.1.4.tar.gz.

File metadata

  • Download URL: slope_er-0.1.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.2

File hashes

Hashes for slope_er-0.1.4.tar.gz
Algorithm Hash digest
SHA256 efc1d8fcecf3f6965f51545fa1e32d6a928ce28566b32359f251915e3953bd8f
MD5 0d6f6bb75015588642728f977040a72e
BLAKE2b-256 8ca6607d5abd87b75141c788f9ae46258dfb3fdee4019aac87fb6f732dcb3f68

See more details on using hashes here.

File details

Details for the file slope_er-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: slope_er-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.2

File hashes

Hashes for slope_er-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11045abd9d8e3c147077c511044aa8f228882744087f6797a221e3ca7cb651d9
MD5 c818b8f3fa39fa9ccb00247c543cba8f
BLAKE2b-256 b1e7b0fc05cec8a7aca7b7c684009c0676b6b4e0fb370383dae38138004b2be1

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