Skip to main content

bencheval

Benchmark evaluation for tabular machine learning: turns a table of per-task results into a leaderboard with Elo, win-rates, average ranks, improvability, and bootstrap confidence intervals. It is the leaderboard engine behind TabArena and is developed in the TabArena repository, but it does not depend on the tabarena package, so any benchmark that produces (method, task, metric_error) rows can use it.

Experimental. The API is still moving. Pin the version you evaluate with; every tabarena release pins the matching bencheval release.

Install

pip install --pre bencheval          # metrics + leaderboards
pip install --pre "bencheval[plot]"  # + matplotlib / seaborn / plotly for the plotting mixin

Releases on PyPI are pre-releases for now, so --pre (or uv pip install --prerelease=allow) is needed. The git checkout is the recommended install for development; see the TabArena README.

Usage

import pandas as pd
from bencheval.evaluator import BenchmarkEvaluator

# One row per (method, task[, seed]); lower `metric_error` is better.
data = pd.DataFrame(
    {
        "method": ["A", "B", "A", "B"],
        "task": ["t1", "t1", "t2", "t2"],
        "seed": [0, 0, 0, 0],
        "metric_error": [0.10, 0.12, 0.30, 0.25],
        "time_train_s": [1.0, 2.0, 1.5, 2.5],
        "time_infer_s": [0.1, 0.2, 0.1, 0.2],
    }
)

evaluator = BenchmarkEvaluator(seed_column="seed")
leaderboard = evaluator.leaderboard(data, include_error=True)
print(leaderboard)

examples/plots/run_generate_custom_leaderboard.py in the TabArena repository shows custom leaderboard metrics, Elo calibration against a reference method, and seed averaging.

License

Apache-2.0. See the LICENSE file shipped with the distribution.

Metadata

Release files for bencheval 0.1.0

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

Source distribution (sdist)

Source distribution for bencheval 0.1.0
File Size Uploaded Provenance Actions
bencheval-0.1.0.tar.gz 55.2 kB Without provenance Details for bencheval-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bencheval 0.1.0
File Interpreter ABI Platform Actions
bencheval-0.1.0-py3-none-any.whl Python 3 none any Details for bencheval-0.1.0-py3-none-any.whl

Total release size: 112.5 kB

Release files / bencheval-0.1.0.tar.gz

Download URL bencheval-0.1.0.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9c150bc291ac1f64b1cad4e957bc76875b75f796ac5dec4ba252d6ba39c37030
BLAKE2b-256 checksum
How to use checksums
f83e8179d95fce17188f6468a0c74d6722872277bf42e8686abc6cda4daa3a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / bencheval-0.1.0-py3-none-any.whl

Download URL bencheval-0.1.0-py3-none-any.whl
Size 57.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52b6e13c1329bf75c67cf3d1a2e38e008b7673275f69cc05982249b73af66230
BLAKE2b-256 checksum
How to use checksums
a41929cfc48bf38f264f6a5a9520d9c47c19b4004c63352570adee19006df2d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for bencheval 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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