{
  "_schema": "https://data.nist.gov/od/dm/nerdm-schema/v0.7#",
  "@context": [
    "https://data.nist.gov/od/dm/nerdm-pub-context.jsonld",
    {
      "@base": "ark:/88434/mds2-4079"
    }
  ],
  "@type": [
    "nrdp:DataPublication",
    "nrdp:PublicDataResource",
    "dcat:Dataset"
  ],
  "_extensionSchemas": [
    "https://data.nist.gov/od/dm/nerdm-schema/pub/v0.7#/definitions/PublicDataResource"
  ],
  "@id": "ark:/88434/mds2-4079",
  "ediid": "ark:/88434/mds2-4079",
  "version": "1.0.0",
  "doi": "doi:10.18434/mds2-4079",
  "title": "Contingency: a python library for fast, vectorized metrology with binary contingency counts.",
  "contactPoint": {
    "fn": "Rachael Sexton",
    "hasEmail": "mailto:rachael.sexton@nist.gov"
  },
  "modified": "2026-03-19",
  "status": "available",
  "landingPage": "https://data.nist.gov/od/id/mds2-4079",
  "description": [
    "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."
  ],
  "keyword": [
    "binary classification",
    "classifier",
    "machine learning",
    "metrics",
    "performance",
    "experiments",
    "accuracy",
    "recall",
    "precision",
    "contingency table",
    "marginal counts",
    "error",
    "type I",
    "type II",
    "vectorized",
    "batched",
    "approximation"
  ],
  "topic": [
    {
      "@type": "Concept",
      "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.1",
      "tag": "Metrology: Metric"
    },
    {
      "@type": "Concept",
      "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.1",
      "tag": "Mathematics and Statistics: Statistical analysis"
    },
    {
      "@type": "Concept",
      "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.1",
      "tag": "Mathematics and Statistics: Numerical methods and software"
    },
    {
      "@type": "Concept",
      "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.1",
      "tag": "Mathematics and Statistics: Experiment design"
    },
    {
      "@type": "Concept",
      "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.1",
      "tag": "Information Technology: Data and informatics"
    },
    {
      "@type": "Concept",
      "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.1",
      "tag": "Information Technology: Computational science"
    }
  ],
  "accessLevel": "public",
  "license": "https://www.nist.gov/open/license",
  "publisher": {
    "name": "National Institute of Standards and Technology",
    "@type": "org:Organization"
  },
  "language": [
    "en"
  ],
  "bureauCode": [
    "006:55"
  ],
  "programCode": [
    "006:052"
  ],
  "theme": [
    "Metrology: Metric",
    "Mathematics and Statistics: Statistical analysis",
    "Mathematics and Statistics: Numerical methods and software",
    "Mathematics and Statistics: Experiment design",
    "Information Technology: Data and informatics",
    "Information Technology: Computational science"
  ],
  "components": [
    {
      "accessURL": "https://github.com/usnistgov/Contingency",
      "format": {
        "description": "git repository"
      },
      "description": "GitHub repository within the usnistgov organization. ",
      "title": "Contingency (source repository)",
      "@type": [
        "nrdp:AccessPage",
        "dcat:Distribution"
      ],
      "@id": "#usnistgov/Contingency",
      "_extensionSchemas": [
        "https://data.nist.gov/od/dm/nerdm-schema/pub/v0.7#/definitions/AccessPage"
      ]
    },
    {
      "@id": "cmps/README-contingency.md",
      "@type": [
        "nrdp:DataFile",
        "nrdp:DownloadableFile",
        "dcat:Distribution"
      ],
      "_extensionSchemas": [
        "https://data.nist.gov/od/dm/nerdm-schema/pub/v0.7#/definitions/DataFile"
      ],
      "filepath": "README-contingency.md",
      "downloadURL": "https://data.nist.gov/od/ds/mds2-4079/README-contingency.md",
      "mediaType": "text/x-web-markdown",
      "title": "README-contingency",
      "size": 2847,
      "checksum": {
        "hash": "96597107c6be2432f6fe799242ca73477eeee29c7b9865a714938d197e75bf77",
        "algorithm": {
          "tag": "sha256",
          "@type": "Thing"
        }
      }
    }
  ],
  "_editStatus": "done",
  "authors": [
    {
      "familyName": "Sexton",
      "fn": "Rachael  T Sexton",
      "givenName": "Rachael ",
      "middleName": "T",
      "affiliation": [
        {
          "title": "National Institute of Standards and Technology",
          "subunits": [
            "Engineering Laboratory/Systems Integration Division"
          ],
          "@type": "org:Organization",
          "@id": "ror:05xpvk416"
        }
      ],
      "orcid": "0000-0001-5904-2887",
      "@type": "foaf:Person"
    }
  ],
  "annotated": "2026-05-08T19:11:35.011239",
  "revised": "2026-05-08T19:11:35.011239",
  "issued": null,
  "firstIssued": "2026-05-08T19:11:35.011239"
}