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

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.5.0rc1
File Size Uploaded Provenance Actions
evalica-0.5.0rc1.tar.gz 60.1 kB With provenance Details for evalica-0.5.0rc1.tar.gz

Built distributions (wheels)

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

Total release size: 4.0 MB

Release files / evalica-0.5.0rc1.tar.gz

Download URL evalica-0.5.0rc1.tar.gz
Size 60.1 kB
Tags Source
SHA-256 checksum
How to use checksums
149a8bf1ffd921e7251c3ef3d27f6defeb68aa096b3fca41a95cab53484e59f2
BLAKE2b-256 checksum
How to use checksums
3c6afed8c677b2c4b678391cd5427ee70c5fc36dd712be799d896ccc475e81a5
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-win_arm64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-win_arm64.whl
Size 249.1 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4892f1c136811f0adc8077f0abf20ed74940e26d1ba3fad398106e4cbc811e41
BLAKE2b-256 checksum
How to use checksums
4fed38b81d2922c17812cac9dcd2d44ef820c310e6858b97a213b9502508c42e
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-win_amd64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-win_amd64.whl
Size 260.7 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7d68491fcd897e13a27e45510d8d1e33ce55112d5e6fad03329a8f1f4fce9709
BLAKE2b-256 checksum
How to use checksums
b0a73aa3dd691661e5c7c99be6290c1ac10b7c3cc3ec97e836395621848751b0
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-win32.whl

Download URL evalica-0.5.0rc1-cp310-abi3-win32.whl
Size 242.4 kB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
81293af4de3f97ecd93c4e68ceac4da0eca2bc02a123a535dc3fed834e0405d6
BLAKE2b-256 checksum
How to use checksums
f9062c4382498efa881ba9bc3e149ee0d8f7f83958c18cb7da3ddb73f96265f6
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 614.1 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
3e589853da48504beef97e154d6c297f44d8e7d0643f0df36ea1f10c19180677
BLAKE2b-256 checksum
How to use checksums
b17786c0c5b52ea7a13743744b320ec6d82ebfcde0d6b3ae492ffb379b157a70
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 578.1 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
a0a4af58e88637f98ce5b07071ecf228fa49b0712f23eb6f3a2c638419855db4
BLAKE2b-256 checksum
How to use checksums
1bd3930eb20319a90ee6273d1c8f2090e07362addf864fb00151ef99eec1a6cc
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 411.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
89e74e7ca23ea150e2d6f1a24ab404f16a41a97fdbe3622c224779fb0785a3a9
BLAKE2b-256 checksum
How to use checksums
7f7a0585eeb23ec270815dac4421f823d9112f2fb3c7b212461f07645860363d
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl

Download URL evalica-0.5.0rc1-cp310-abi3-manylinux2014_i686.manylinux_2_17_i686.whl
Size 400.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-32 abi3
SHA-256 checksum
How to use checksums
41a482d2d12c9d7aa390cadac39e7fc3776ff66023f3b26f7686ceb2c2b14da2
BLAKE2b-256 checksum
How to use checksums
d60bc01c7f9f8456774e06bc6e6d82e1074e026f6b07b82141db325826776ef2
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 399.8 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f17c64d84f3cf99c6a0484667a7aa38bd34404c371c2217667b97b483763e763
BLAKE2b-256 checksum
How to use checksums
2e73c72b01f723cd9824591ee061265d72894f70c07aa5c835bcdf676e8bd039
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-macosx_11_0_arm64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-macosx_11_0_arm64.whl
Size 366.5 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
174f12037bae1384c5acf7b50a6ad3f8dfa0dd1b88eea1ab5e6bd58bfcb5cd10
BLAKE2b-256 checksum
How to use checksums
559896938270320984be82ec5b150e4fec62c8befd3c5d63519d2fa2687614db
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 29, 2026.

Transparency log

Release files / evalica-0.5.0rc1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL evalica-0.5.0rc1-cp310-abi3-macosx_10_12_x86_64.whl
Size 369.7 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6243ad068d6ecbe982900d83e31e0ebd03a34fcfd0167771fa21d44419026a39
BLAKE2b-256 checksum
How to use checksums
b02c1869f4d0404a554885ac9b7435d41952b1ea3192d2157ffa84f7d8078af9
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 29, 2026.

Transparency log

Security for evalica 0.5.0rc1

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.5.0rc1.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 29, 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