Skip to main content
U.S. flag

An official website of the United States government

Contingency: a python library for fast, vectorized metrology with binary contingency counts.

Published by National Institute of Standards and Technology | Department of Commerce | Catalog Last Checked: October 02, 2026 at 07:54 PM | Dataset Last Updated: March 19, 2026
With this tool, users can rapidly calculate binary classifier metrics like Matthew's Correlation Coefficient, F-Scores, and Average Precision Scores from scalar and binary predictions. It is primarily used to calculate threshold sensitivity studies, and has several routines to significantly speed up metric calculation (or approximation) when aggregate measures of performance over all thresholds are needed.

Resources

2 resources available

Find Related Datasets

data.gov

An official website of the GSA's Technology Transformation Services

Looking for U.S. government information and services?
Visit USA.gov