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

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.5.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.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slope_er-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 357973cc8941be2ad63a4352cffcc04222618422be6d8521c0e0d4961fa8e2e6
MD5 7f646acae72fd4aceaddae37e1185cbf
BLAKE2b-256 faac92fa170ebe5a1d99abfdcbfa40a10893fcd57955d3a5e1374ae00d364af3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slope_er-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4484062709aae0d1f0ade366dc990f63258ca4c8666609ed10a4178c46e4c434
MD5 4c3b6ebad60ef30687f179bc3203109a
BLAKE2b-256 c04ba3e788d75f947a1dacf65eb7bffca3c558c38a892df39d108e0eada94601

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