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), 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

Installation

pip install slope-er==0.1.6

To import and use

import slope_er

Call the function

result = slope_er.ser(0.3, 0.7,True) print(f"The Slope Error Rate is: {result}")

or

a = np.array([1,1,1,1,1,1,0,0,1,0,1,0]) b = np.array([1,0,1,1,1,1,0,0,1,0,1,0]) result = slope_er.ser(a, b,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.6.tar.gz (3.3 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.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slope_er-0.1.6.tar.gz
  • Upload date:
  • Size: 3.3 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.6.tar.gz
Algorithm Hash digest
SHA256 6c43e535241477531578e6ec72afa512952ed745d5f2d6789f275bf2153a9cf9
MD5 8c5c19162b75bc3df8f615c6fa49c6c5
BLAKE2b-256 521be1928402380d937804fd5324e90a89fa0b0478f7477a667e573c47a840a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slope_er-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d5376fc4cdf646ec224755f56b91856c6dda12fdf5de3d4179e16139edb9565d
MD5 1fbbebd19a68eee4734f35306f2ab2c8
BLAKE2b-256 bdafb4884e7816c1e5d91502c690c9534a035a097321387143b66eb98e8d142d

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