Skip to main content

rubicon-ml

Test Package Publish Package Publish Docs edgetest

Conda Version PyPi Version ruff uv Binder

Purpose

rubicon-ml is a data science tool that captures and stores model training and execution information, like parameters and outcomes, in a repeatable and searchable way. Its git integration associates these inputs and outputs directly with the model code that produced them to ensure full auditability and reproducibility for both developers and stakeholders alike. While experimenting, the dashboard makes it easy to explore, filter, visualize, and share recorded work.


Components

rubicon-ml is composed of three parts:

  • A Python library for storing and retrieving model inputs, outputs, and analyses to filesystems that’s powered by fsspec
  • A dashboard for exploring, comparing, and visualizing logged data built with dash
  • And a process for sharing a selected subset of logged data with collaborators or reviewers that leverages intake

Workflow

Use rubicon_ml to capture model inputs and outputs over time. It can be easily integrated into existing Python models or pipelines and supports both concurrent logging (so multiple experiments can be logged in parallel) and asynchronous communication with S3 (so network reads and writes won’t block).

Meanwhile, periodically review the logged data within the Rubicon dashboard to steer the model tweaking process in the right direction. The dashboard lets you quickly spot trends by exploring and filtering your logged results and visualizes how the model inputs impacted the model outputs.

When the model is ready for review, Rubicon makes it easy to share specific subsets of the data with model reviewers and stakeholders, giving them the context necessary for a complete model review and approval.

Use

Check out the interactive notebooks in this Binder to try rubicon_ml for yourself.

Here's a simple example:

from rubicon_ml import Rubicon

rubicon = Rubicon(
    persistence="filesystem", root_dir="/rubicon-root", auto_git_enabled=True
)

project = rubicon.create_project(
    "Hello World", description="Using rubicon to track model results over time."
)

experiment = project.log_experiment(
    training_metadata=[SklearnTrainingMetadata("sklearn.datasets", "my-data-set")],
    model_name="My Model Name",
    tags=["my_model_name"],
)

experiment.log_parameter("n_estimators", n_estimators)
experiment.log_parameter("n_features", n_features)
experiment.log_parameter("random_state", random_state)

accuracy = rfc.score(X_test, y_test)
experiment.log_metric("accuracy", accuracy)

Then explore the project by running the dashboard:

rubicon_ml ui --root-dir /rubicon-root

Documentation

For a full overview, visit the docs. If you have suggestions or find a bug, please open an issue.

Install

The Python library is available on Conda Forge via conda and PyPi via pip.

conda config --add channels conda-forge
conda install rubicon-ml

or

pip install rubicon-ml

Develop

To contribute, check out our developer guide for the latest instructions on setting up your local developer environment.

Tests

The tests are separated into unit and integration tests. They can be run directly in the uv environment via uv run pytest tests/unit or uv run pytest tests/integration. Or by simply running uv run pytest to execute all of them.

Note: some integration tests are intentionally marked to control when they are run (i.e. not during CICD). These tests include:

  • Integration tests that write to physical filesystems - local and S3. Local files will be written to ./test-rubicon relative to where the tests are run. An S3 path must also be provided to run these tests. By default, these tests are disabled. To enable them, run:

    uv run pytest -m "write_files" --s3-path "s3://my-bucket/my-key"
    
  • Integration tests that run Jupyter notebooks. These tests are a bit slower than the rest of the tests in the suite as they need to launch Jupyter servers. By default, they are enabled. To disable them, run:

    uv run pytest -m "not run_notebooks and not write_files"
    

    Note: When simply running uv run pytest, -m "not write_files" is the default. So, we need to also apply it when disabling notebook tests.

Style

We use ruff for linting and formatting. To check and update the code style, run:

uv run ruff check --fix
uv run ruff format

Install and configure pre-commit to automatically run ruff during commits:

Now pre-commit will run automatically on git commit and will ensure consistent code format throughout the project. You can format without committing via uv run pre-commit run --all-files or skip these checks with git commit --no-verify.


If you're looking for Rubicon, the Java & Objective C to Python bridge, visit here.

Metadata

Release files for rubicon-ml 0.15.4

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

Source distribution (sdist)

Source distribution for rubicon-ml 0.15.4
File Size Uploaded Provenance Actions
rubicon_ml-0.15.4.tar.gz 99.9 kB Without provenance Details for rubicon_ml-0.15.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rubicon-ml 0.15.4
File Interpreter ABI Platform Actions
rubicon_ml-0.15.4-py3-none-any.whl Python 3 none any Details for rubicon_ml-0.15.4-py3-none-any.whl

Total release size: 212.8 kB

Release files / rubicon_ml-0.15.4.tar.gz

Download URL rubicon_ml-0.15.4.tar.gz
Size 99.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d1e906c70e1dcf7b1640b4cbbe67cd39581c71fbd258cf3121f88ccb622eb6d0
BLAKE2b-256 checksum
How to use checksums
4a8e46e8aec2136dcce663fb826e7736aea1991ccba310e4c8a22e04ce7dbf61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / rubicon_ml-0.15.4-py3-none-any.whl

Download URL rubicon_ml-0.15.4-py3-none-any.whl
Size 113.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8642f345312ceae1b8e92a87cd932ace3c60089a74b147c6a1ea0fbcccd7eeb4
BLAKE2b-256 checksum
How to use checksums
67e4fb9dd664d40c272ca1697ed0443d559363f857eef02ff41c14b32c056640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for rubicon-ml 0.15.4

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