Skip to main content

Evalica, your favourite evaluation toolkit

Evalica

Tests Read the Docs PyPI Version Anaconda.org crates.io Codecov CodSpeed Badge

Evalica [ɛˈʋalit͡sa] (eh-vah-lee-tsah) is an evaluation toolkit for statistical analysis, combining fast Rust implementations with Python APIs for ranking, reliability, and uncertainty estimation. Evalica is fully compatible with NumPy arrays and pandas data frames.

The logo was created using Recraft.

Installation

  • pip: pip install evalica
  • Anaconda: conda install conda-forge::evalica
  • Cargo: cargo add evalica

Pairwise Comparisons

Imagine that we would like to rank the different meals and have the following dataset of three comparisons produced by food experts.

Item X Item Y Winner
pizza burger x
burger sushi y
pizza sushi tie

Given this hypothetical example, Evalica takes these three columns and computes the outcome of the given pairwise comparison according to the chosen model. Note that the first argument is the column Item X, the second argument is the column Item Y, and the third argument corresponds to the column Winner.

>>> from evalica import elo, Winner
>>> result = elo(
...     ["pizza", "burger", "pizza"],
...     ["burger", "sushi", "sushi"],
...     [Winner.X, Winner.Y, Winner.Draw],
... )
>>> result.scores
pizza     1014.972058
burger     970.647200
sushi     1014.380742
Name: elo, dtype: float64

As a result, we obtain Elo scores of our items. In this example, pizza was the most favoured item, sushi was the runner-up, and burger was the least preferred item.

Item Score
pizza 1014.97
burger 970.65
sushi 1014.38

Inter-Rater Reliability

Evalica also supports computing Krippendorff's alpha, a statistical measure of inter-rater reliability. Unlike pairwise comparisons, alpha accepts a matrix where rows represent raters (observers) and columns represent units (items being rated).

>>> import pandas as pd
>>> from evalica import alpha
>>> data = pd.DataFrame(
...     [
...         [1, 1, None, 1],
...         [2, 2, 3, 2],
...         [3, 3, 3, 3],
...         [3, 3, 3, 3],
...         [2, 2, 2, 2],
...         [1, 2, 3, 4],
...         [4, 4, 4, 4],
...         [1, 1, 2, 1],
...         [2, 2, 2, 2],
...         [None, 5, 5, 5],
...         [None, None, 1, 1],
...     ]
... ).T
>>> result = alpha(data, distance="nominal")
>>> result.alpha
0.7434210526315788
>>> from evalica import alpha_bootstrap
>>> bootstrap_result = alpha_bootstrap(data, distance="nominal", n_resamples=1000, random_state=42)
>>> (bootstrap_result.low, bootstrap_result.high)
(0.4431818181818182, 0.9411764705882353)

This example demonstrates computing alpha and its bootstrap confidence intervals with nominal distance for categorical ratings. Evalica supports multiple distance metrics: nominal, ordinal, interval, ratio, or custom distance functions.

Command-Line Interface

Evalica also provides a simple command-line interface, allowing the use of these methods in shell scripts and for prototyping.

Pairwise Ranking

$ evalica -i food.csv pairwise bradley-terry
item,score,rank
Tacos,2.509025136024378,1
Sushi,1.1011561298265815,2
Burger,0.8549063627182466,3
Pasta,0.7403814336665869,4
Pizza,0.5718366915548537,5

Refer to the food.csv file as an input example.

Krippendorff's Alpha

For Krippendorff's alpha, use a CSV file with ratings in a matrix format (no header):

$ evalica -i codings.csv alpha --distance=nominal
metric,value
alpha,0.743421052631579
observed,7.999999999999999
expected,31.179487179487182

Web Application

Evalica has a built-in Gradio application that can be launched as python3 -m evalica.gradio. Please ensure that the library was installed as pip install evalica[gradio].

Implemented Methods

Method In Python In Rust
Counting ✅ ✅
Average Win Rate ✅ ✅
Bradley–Terry ✅ ✅
Elo ✅ ✅
Eigenvalue ✅ ✅
PageRank ✅ ✅
Newman ✅ ✅
Krippendorff's Alpha ✅ ✅

Contributing

Evalica is a mixed Rust/Python project that uses PyO3, so it requires setting up the Maturin build system.

To set up the environment, we recommend using the uv package manager, as demonstrated in our test suite:

$ uv venv
$ uv pip install maturin
$ source .venv/bin/activate
$ maturin develop --uv --extras dev,docs,gradio

In case uv is not available, you can use the following workaround:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install maturin
$ maturin develop --extras dev,docs,gradio

It is also possible to omit the Rust-accelerated routines via pip install --no-binary evalica.

We welcome pull requests on GitHub: https://github.com/dustalov/evalica. To contribute, fork the repository, create a separate branch for your changes, and submit a pull request.

Citation

@inproceedings{Ustalov:25,
  author    = {Ustalov, Dmitry},
  title     = {{Reliable, Reproducible, and Really Fast Leaderboards with Evalica}},
  year      = {2025},
  booktitle = {Proceedings of the 31st International Conference on Computational Linguistics: System Demonstrations},
  pages     = {46--53},
  address   = {Abu Dhabi, UAE},
  publisher = {Association for Computational Linguistics},
  eprint    = {2412.11314},
  eprinttype = {arxiv},
  eprintclass = {cs.CL},
  url       = {https://aclanthology.org/2025.coling-demos.6},
  language  = {english},
}

The code for replicating the experiments is available in the coling2025 directory.

Copyright (c) 2024–2026 Dmitry Ustalov. See LICENSE for details.

Metadata

Release files for evalica 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for evalica 0.4.3
File Size Uploaded Provenance Actions
evalica-0.4.3.tar.gz 58.7 kB With provenance Details for evalica-0.4.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for evalica 0.4.3
File Actions
evalica-0.4.3-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for evalica-0.4.3-cp310-abi3-win_arm64.whl
evalica-0.4.3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for evalica-0.4.3-cp310-abi3-win_amd64.whl
evalica-0.4.3-cp310-abi3-win32.whl CPython 3.10 abi3 Windows x86-32 Details for evalica-0.4.3-cp310-abi3-win32.whl
evalica-0.4.3-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for evalica-0.4.3-cp310-abi3-musllinux_1_2_x86_64.whl
evalica-0.4.3-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for evalica-0.4.3-cp310-abi3-musllinux_1_2_aarch64.whl
evalica-0.4.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for evalica-0.4.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
evalica-0.4.3-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-32 Details for evalica-0.4.3-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl
evalica-0.4.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for evalica-0.4.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
evalica-0.4.3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for evalica-0.4.3-cp310-abi3-macosx_11_0_arm64.whl
evalica-0.4.3-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for evalica-0.4.3-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 4.1 MB

Release files / evalica-0.4.3.tar.gz

Download URL evalica-0.4.3.tar.gz
Size 58.7 kB
Tags Source
SHA-256 checksum
How to use checksums
559f798c221399f5464f18c48c4270d66aa84aad48c460a19d1f1d48022eaba6
BLAKE2b-256 checksum
How to use checksums
144a324a7979cfbc843635a05b8da911194dfdf7c4fdfb545e0a87266f306039
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-win_arm64.whl

Download URL evalica-0.4.3-cp310-abi3-win_arm64.whl
Size 253.4 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
56aac7d66c4925d273dc99b97b0fcf6308c70afadaac72b3797d535747e7eef2
BLAKE2b-256 checksum
How to use checksums
60443430d7d77996e7929568146fc780c6eee3fe80469d4ef15f09862954eff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-win_amd64.whl

Download URL evalica-0.4.3-cp310-abi3-win_amd64.whl
Size 285.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
704b24e7999bbeed9eaa435986b09627fc505eac42e16b0b1870f26e62bb6288
BLAKE2b-256 checksum
How to use checksums
d5f83716479148d205453083fe19b3c3f9bac0d93ae5625d4d6702f80415f549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-win32.whl

Download URL evalica-0.4.3-cp310-abi3-win32.whl
Size 259.4 kB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
7cd726f9c86e24d35f8233e2f390dd55c0509590e2891dcff8410b2ce81047c3
BLAKE2b-256 checksum
How to use checksums
1cad17098263c3b39ac86d16e9caee251d28576cc87277a6033fef71bcb7aaae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL evalica-0.4.3-cp310-abi3-musllinux_1_2_x86_64.whl
Size 641.0 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
3d11d4d1c282c9786e6c02f4bdd347466347262d55719625ede044d6f80e4ecd
BLAKE2b-256 checksum
How to use checksums
48fb0a265b19616a79e9d0447a030eec03af0762ddeedd38881a0f8aaba6085b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL evalica-0.4.3-cp310-abi3-musllinux_1_2_aarch64.whl
Size 583.3 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
55601bb7e7de2e6604626ff2913ed0143d1765dd2687ccead8d3a43459258497
BLAKE2b-256 checksum
How to use checksums
368e80a85f437d69c65917c04905ac0019180401fa893fd96ad9802a6a0ef9db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL evalica-0.4.3-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 438.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
077948de80c1e53116bc41b8f8c2668bf72b4cc19bee43ac5c6ced6bfdeaf7f3
BLAKE2b-256 checksum
How to use checksums
995ecbc3db96912c5312b390e448a7eb833af5f983178942e383b6d6f6827985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl

Download URL evalica-0.4.3-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl
Size 420.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-32 abi3
SHA-256 checksum
How to use checksums
6864f7e699d6a55c7416629396e20c6b512db01f177167fd1837d42746dc8250
BLAKE2b-256 checksum
How to use checksums
0e271efa37aa7c66c0966c89aa0035a799ff55ed14621386535542e78b932e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL evalica-0.4.3-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 406.2 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b33240b55a3cb2f48efb49cd2f711af671e6e0309de3fb0ae9d4c0a5fcdfec07
BLAKE2b-256 checksum
How to use checksums
90b0be2dffefe7952db22d51e4fc50fb1169e8326202aa5bd29213901b67a8cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-macosx_11_0_arm64.whl

Download URL evalica-0.4.3-cp310-abi3-macosx_11_0_arm64.whl
Size 371.2 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
95024abc4ce19a840923ad32b29e98bce93cf107016b095a00f831da5e870123
BLAKE2b-256 checksum
How to use checksums
a0bc75776ded129e8cc0dd01a95c708df6ef105683aeb201b6eb931e61aaea46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / evalica-0.4.3-cp310-abi3-macosx_10_12_x86_64.whl

Download URL evalica-0.4.3-cp310-abi3-macosx_10_12_x86_64.whl
Size 394.1 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
798251cb855762882b1a0eb9b73523486cffadc9fe2d893fae654e2d22cb7577
BLAKE2b-256 checksum
How to use checksums
1752b6e16e994a41af9918b10673369c2cea6f60b009cd512a3eb6da3e8551fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for evalica 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for evalica-0.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page