Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

rbp-engine

Relevance-Based Prediction (RBP) Engine for Python: NumPy-friendly bindings to the RBP prediction engine from Cambridge Sports Analytics.

Relevance-based prediction (RBP) is a model-free prediction routine that forms a prediction as a weighted average of observed outcomes in which the weights are based on a statistic called relevance. Relevance is composed of similarity and informativeness which are both measured as Mahalanobis distances. RBP serves as a favorable alternative to conventional prediction methods such as linear regression analysis because it addresses complex dynamics that are beyond the reach of linear regression analysis. It also serves as a favorable alternative to AI models because RBP can extract as much information from complex datasets as AI models but more efficiently and with full transparency.

pip install rbp-engine

rbp-engine 2.0.0 is the Python interface product. It has the same call surface as 1.3.4. The jump marks the split from the math crate: this package can version on its own. The bundled native library is still rbp-math-lib 1.3.4 (rbp_engine_version() / rbp-license-info --viewlicense). Later 2.x releases may change Python helpers without a new math build.

Quick start

import numpy as np
from rbp_engine import predict_grid, GridOptions, relevance, similarity, info_x, info_theta, relevance_metrics

# y: outcomes (N,)
# X: attributes (N, K)
# theta: circumstances (K,) — the single case you want a prediction for
out = predict_grid(y, X, theta, GridOptions())
print(float(out.yhat[0]))   # fit-weighted composite across attribute × observation calibrations

# Relevance-based scores without a full prediction
r = relevance(X, theta)       # relevance of each training row to the circumstances
s = similarity(X, theta)      # similarity (Mahalanobis) of each row to theta
ix = info_x(X)                # informativeness of each row vs the sample mean
it = info_theta(X, theta)     # informativeness of the circumstances vs the sample mean

# Or, all four in one native pass:
m = relevance_metrics(X, theta)
m.relevance, m.similarity, m.info_x, m.info_theta

For most analysis work, start with predict_grid. It evaluates combinations of attributes and observation subsets, then forms one composite prediction (yhat of length 1) weighted by adjusted fit.

Use relevance, similarity, info_x, and info_theta when you need scores without running a full prediction.

Built-in help includes paste-ready examples:

help(predict_grid)
help(GridOptions)
help(PredictionResults)

Core functions

Symbol Role
predict_grid / GridOptions Recommended default. Grid prediction uses combinations of attributes and observation subsets evaluate cell predictions by adjusted fit into one optimal composite (yhat, length 1), with rich insights
predict_maxfit / MaxFitOptions For a fixed attribute set, evaluate across thresholds (and optionally both censor types) and solve for the max fit / adjusted-fit / k-fit result
predict / PredictOptions Partial-sample regression using relevance-weighted average of outcomes at one or more chosen thresholds; MaxFit and Grid prediction wraps this
relevance Relevance scores of each observation to circumstances (theta); as a function of similarity and informativeness
similarity Similarity scores of each observation to circumstances
info_x, info_theta Informativeness: how unusual each observation (info_x) or the circumstances (info_theta) are relative to the sample mean
relevance_metrics All four scores above in one call (one native pass)
PredictionResults NumPy snapshot: nested groups mirror Rust (insights, prediction_weights, solo_distribution, grid_*, …); core fields on root

Supported platforms

Installs with pip on Python 3.10+. Nothing to compile, no extra system libraries.

Supported Platform Notes
macOS 11+ (Apple Silicon) Preferred platform; uses Apple Accelerate
Linux (Intel/AMD) glibc 2.34+ (RHEL 9 / Alma / Rocky / Amazon Linux 2023 / Ubuntu 22.04+)
Linux (Arm) same glibc floor
Windows (Intel/AMD) Supported; Apple Silicon macOS preferred when you have a choice

If your platform isn't listed, pip will report that no matching distribution was found.

Requires numpy>=1.24.

License

rbp-engine is commercial software and requires a license from Cambridge Sports Analytics. Contact prediction@csanalytics.io to get started.

After install, rbp-license-info is available in the same environment (activate your virtual environment if you use one):

rbp-license-info                             # request code, or status if already licensed
rbp-license-info --setlicense 'RBP-LIC-1:…'  # install the token you receive
rbp-license-info --viewlicense               # license status plus engine path/version/ABI

For site or server deployments, contact Cambridge Sports Analytics, setup differs from the workstation flow above.

(c) 2026 Cambridge Prediction Analytics, LLC. All rights reserved.

Metadata

Release files for rbp-engine 2.0.0

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Built distributions (wheels)

Table of built distributions (wheels) for rbp-engine 2.0.0
File
rbp_engine-2.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
rbp_engine-2.0.0-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details
rbp_engine-2.0.0-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details
rbp_engine-2.0.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 32.0 MB

Release files / rbp_engine-2.0.0-py3-none-win_amd64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL rbp_engine-2.0.0-py3-none-win_amd64.whl
Size 6.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4d0ae2f5b1f28232c14446b6308b9804263c54d13ca365f026d8e38529311348
BLAKE2b-256 checksum
How to use checksums
03a3d6c553b1c60f3091e41716d0703f2e2e94eebc740ad81ab2dbf8f4df8a86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / rbp_engine-2.0.0-py3-none-manylinux_2_34_x86_64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL rbp_engine-2.0.0-py3-none-manylinux_2_34_x86_64.whl
Size 15.5 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
62af73ffd0bb9795b6e9ab10ecf70d3c1a9003ab90fa5bfb54988c877c068713
BLAKE2b-256 checksum
How to use checksums
ea6c2f9e5fba783fd20c1d24b812a7736199a0eea03dbb73835c57958c8a1c85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / rbp_engine-2.0.0-py3-none-manylinux_2_34_aarch64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL rbp_engine-2.0.0-py3-none-manylinux_2_34_aarch64.whl
Size 9.0 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8343e0d5ea3e7609333e8b1681dd505a08c8393322a86c78d5d3290014f47349
BLAKE2b-256 checksum
How to use checksums
6e4164876f0e8d2dfe812bba9114fcfb4fa1a46cde0a5d0e1443fdf7b4f3b1c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / rbp_engine-2.0.0-py3-none-macosx_11_0_arm64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL rbp_engine-2.0.0-py3-none-macosx_11_0_arm64.whl
Size 1.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6b2ad28803968706f6dab7eabade8a6904ad1188e3b9864112fb2dc844aa664c
BLAKE2b-256 checksum
How to use checksums
64e6a49f7aacb149652fa2fc30148b6d17e82a26a0454d15074648334a53e13d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Security for rbp-engine 2.0.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.

Change of provenance

The repository that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Repository

  • Removed 1.3.4 GitHub: CambridgeSportsAnalytics/rbp-math-lib
  • Added 2.0.0 GitHub: CambridgeSportsAnalytics/rbp-engine
Select from 4 files

Attestation for rbp_engine-2.0.0-py3-none-win_amd64.whl

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 Sep 18, 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.

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