Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.3rc1

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.3rc1
File Size Uploaded Provenance Actions
evalica-0.4.3rc1.tar.gz 58.5 kB With provenance Details for evalica-0.4.3rc1.tar.gz

Built distributions (wheels)

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

Total release size: 4.1 MB

Release files / evalica-0.4.3rc1.tar.gz

Download URL evalica-0.4.3rc1.tar.gz
Size 58.5 kB
Tags Source
SHA-256 checksum
How to use checksums
40fe9a03ce0c7fc87f29baf853cd36c3c3624f12b8ca28f1e88704d6f33e4fa0
BLAKE2b-256 checksum
How to use checksums
f1495c1e4578d6515d1cb40bdf3871c6bc7cd88660c42cb45ee4aa56a3abf985
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.3rc1-cp310-abi3-win_arm64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-win_arm64.whl
Size 253.3 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4893b9a4d2d32d5ef6672e20f7f1fd9e2b5f88c9ca4d44a38347f0e3fb8dae45
BLAKE2b-256 checksum
How to use checksums
c92411467c902aadbb67e261c57fa1949e3038fd1b3ab84caf25027d02bee966
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.3rc1-cp310-abi3-win_amd64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-win_amd64.whl
Size 285.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
43fbdf5b2502d6d233ffd8bedde59cdbed100fed7590ec85151c19de4b34f761
BLAKE2b-256 checksum
How to use checksums
5f994895e986a4e3d5a4241cd8529fa27e59dc598c90dc833507bb3d55183eaf
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.3rc1-cp310-abi3-win32.whl

Download URL evalica-0.4.3rc1-cp310-abi3-win32.whl
Size 259.3 kB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
9189fd8e79fda70f7124d7d4306fc9373e691a986701efaa8a791287edeed497
BLAKE2b-256 checksum
How to use checksums
37a8f08aced07502b22424d83e6e6a14cd16208ee396eb7832af22ecccbb65b2
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.3rc1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 640.9 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
937e3616b75c165105446f91be2777245f7f2820b7008ff81f9b4cbce5cc7c26
BLAKE2b-256 checksum
How to use checksums
3311f1829b1562934353af8b882b137deb2cd3af32da1a712e5a32a521595f91
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.3rc1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 583.2 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
a2cef7a9ce72a88a85a636a2ac1639f4a19fc8d09e0ff01272abb97c78854058
BLAKE2b-256 checksum
How to use checksums
846c6f8b366b8ed5a0064caf8d9af65b9672c8482efb2deebdfd97e15b952363
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.3rc1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 438.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
35f0bea74237acab53c470f4208ad3b436db8270c561ec37085c432f35d69232
BLAKE2b-256 checksum
How to use checksums
3d8cb9452ea92986bae99777f6c2af1ddf90a26031bd610b16bd040f61526599
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.3rc1-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl

Download URL evalica-0.4.3rc1-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl
Size 420.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-32 abi3
SHA-256 checksum
How to use checksums
cd26a627464af215a5441242a9be3ac6632eb05030cd678a46e3eec4c9308b92
BLAKE2b-256 checksum
How to use checksums
f79685f2adfb04dd40126625f11242cebf9811bc2eab9783543f98c97f0b0932
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.3rc1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 406.0 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
2e84f50f3157abf99093a99341b86a06428adc64c3acf63d7cafab7244901132
BLAKE2b-256 checksum
How to use checksums
d7359c64449186ed62fbb512968664d7b66d9249201a1b52f28ab54a7b53c099
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.3rc1-cp310-abi3-macosx_11_0_arm64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-macosx_11_0_arm64.whl
Size 371.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ca463b70c002905c9e6c1be8d4bb201ff62a5e5a305fb0d9d4eeacaa6ea64770
BLAKE2b-256 checksum
How to use checksums
1a03f07f8e4eafdaa36c258531f6d72862e03a8d4f86efbcbefde205b04080d0
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.3rc1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL evalica-0.4.3rc1-cp310-abi3-macosx_10_12_x86_64.whl
Size 394.0 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1168c920572091bb59b07b38547dd77660e7e7ca2cc1fbdf75e9c016ad5ef0cf
BLAKE2b-256 checksum
How to use checksums
2fd8fdec5b05a5bcda4e0c8e52b4cc49d4f843f783e59716c604e20ac23e4d70
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.3rc1

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.3rc1.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