Skip to main content

Rival

Config-driven ML benchmarking CLI. Compare multiple machine learning models on the same dataset with a single command. Deterministic, minimal, no nonsense.

Installation

pip install rivalml

For XGBoost support:

pip install rivalml[xgb]

Usage

# experiment.yaml
dataset:
  path: data.csv
  target: target_column

models:
  - logistic_regression
  - random_forest
  - xgboost

metrics:
  - accuracy
  - precision
  - recall
  - f1

training:
  test_size: 0.2
  random_seed: 42
rival run --config experiment.yaml

CLI Args (legacy, still supported)

rival run --dataset data.csv --target target_column --models lr,rf,xgb

Options

Flag Default Description
--config / -c (none) Path to YAML experiment config
--dataset / -d (none) Path to CSV file
--target / -t (none) Target column name
--models / -m lr,rf Comma-separated: lr, rf, xgb
--missing fill_mean Missing value strategy: fill_mean or drop
--seed / -s 42 Random seed for reproducibility
--test-size 0.2 Test split ratio
--output / -o (none) Export results as JSON

Example Output

------------------------------------------------------------
MODEL      ACCURACY   PRECISION   RECALL     F1         LATENCY
------------------------------------------------------------
LR         0.8523     0.8461      0.8300     0.8380     4.2ms
RF         0.8912     0.8850      0.8720     0.8784     11.8ms
XGB        0.9076     0.9031      0.8900     0.8965     17.3ms
------------------------------------------------------------

Supported Models

Alias Full name Backend
lr logistic_regression scikit-learn
rf random_forest scikit-learn
xgb xgboost XGBoost (optional)

Both short (lr) and full (logistic_regression) names work everywhere.

Motivation

Compare ML models easily. No boilerplate, no notebooks, no scattered scripts. One command (or one YAML file), clean output, deterministic results.

Metadata

Release files for rivalml 0.2.2

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

Source distribution (sdist)

Source distribution for rivalml 0.2.2
File Size Uploaded Provenance Actions
rivalml-0.2.2.tar.gz 10.3 kB With provenance Details for rivalml-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 23.5 kB

Release files / rivalml-0.2.2.tar.gz

Download URL rivalml-0.2.2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8fc7740b3a867243092bab2f7c1aa9f7d9a88b2079a443af308ed4eee05f47c3
BLAKE2b-256 checksum
How to use checksums
70374fb98d71e658de45faccfb430dca1be05f796f24c67fccc5338e0e8637c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 23, 2026.

Transparency log

Release files / rivalml-0.2.2-py3-none-any.whl

Download URL rivalml-0.2.2-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5fd7b406721658d17188c59a8c09732b7d31e665b3cfce44546a60da5b8f22a
BLAKE2b-256 checksum
How to use checksums
8c482c340b63a2beef61ea2ac973f5956bff2fa1273a1a3309a20e149448b7cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 23, 2026.

Transparency log

Security for rivalml 0.2.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rivalml-0.2.2.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 Jun 23, 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