Skip to main content

Package for optimising and evaluating Likelihood Ratio (LR) systems.

Project description

LIR Python Likelihood Ratio Toolkit

Toolkit for developing, optimising and evaluating Likelihood Ratio (LR) systems. This allows benchmarking of LR systems on different datasets, investigating impact of different sampling schemes or techniques, and doing case-based validation and computation of case LRs.

LIR was first released in 2020 and redesigned from scratch in 2025, replacing the previous repository.

Documentation

Please consult the dedicated documentation for a comprehensive overview of LiR, terminology and more on developing LR systems.

Practitioner's Guide notebook

Installation

LIR is compatible with Python 3.11 and later. The easiest way to install LIR is to use pip:

pip install lir

Usage

This repository offers both a Python API and a command-line interface.

Command-line interface

Evaluate an LR system using the command-line interface as follows:

  1. define your data, LR system and experiments in a YAML file;
  2. run lir <yaml file>.

The examples folder may be a good starting point for setting up an experiment.

The elements of the experiment configuration YAML are looked up in the registry. The following lists all available elements in the registry.

lir --list-registry

Datasets

There are currently a number of datasets implemented for this project:

Simulations

It is straightforward to simulate data for experimentation. Currently two very simple simulations synthesized_normal_binary and synthesized_normal_multiclass are available, with sources and measurements drawn from normal distributions.

Contributing / Development

Contributions are highly welcomed. If you'd like to contribute to the LiR package, please follow the steps as described in the CONTRIBUTING.md file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

lir-1.3.1-py3-none-any.whl (97.7 kB view details)

Uploaded Python 3

File details

Details for the file lir-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: lir-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 97.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lir-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1d64663a2b84c3cc78b9fe57a54005fabd6bab66b438847b1a6c95ba75c7ce4
MD5 1dbca6202f02295ea423780c7e614428
BLAKE2b-256 33d608919e1b5ae4a0463db02dd1b2995c8e29bd6d6792d2f4e1d26909a67917

See more details on using hashes here.

Provenance

The following attestation bundles were made for lir-1.3.1-py3-none-any.whl:

Publisher: release.yaml on NetherlandsForensicInstitute/lir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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