Skip to main content

Lightweight ML benchmarking tool for reproducible model comparison

Project description

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

YAML Config (recommended)

# 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rivalml-0.2.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rivalml-0.2.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file rivalml-0.2.1.tar.gz.

File metadata

  • Download URL: rivalml-0.2.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rivalml-0.2.1.tar.gz
Algorithm Hash digest
SHA256 290cc3d4bb2af9140c288ae231efbe5014d77b9c8784ba165bb6d48abde8fc50
MD5 18ba1ecca9ca2e6c6e2db631db5a8b2e
BLAKE2b-256 83f69083773fc149f8e86e74d60617c53436e491905957e2ef616c502b4031f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rivalml-0.2.1.tar.gz:

Publisher: publish.yml on MrFaruk0/rival

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rivalml-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: rivalml-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rivalml-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fae4ec284630a1d530843aedf1e4144c7d18a3befd0715420d11218fe0223c89
MD5 4068743db6513936f23f3917ca7d7ead
BLAKE2b-256 9bfc82642194547072db0e1bcadbae5ee646f8807d94dff701c52638d761d786

See more details on using hashes here.

Provenance

The following attestation bundles were made for rivalml-0.2.1-py3-none-any.whl:

Publisher: publish.yml on MrFaruk0/rival

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page