Skip to main content

BGNX

BGNX is a framework for travel time prediction, under development.

This early alpha (0.0.x) ships only general evaluation utilities. The models and the full documentation will be released with the accompanying publications.

pip install bgnx            # metrics and paired comparison
pip install "bgnx[torch]"   # + CPU/GPU device helper
import numpy as np
from bgnx import metrics, paired_comparison

y  = np.array([10.0, 12.5, 30.0, 7.0])    # observed durations (minutes)
pa = np.array([11.0, 12.0, 27.0, 8.0])    # model A
pb = np.array([ 9.0, 15.0, 25.0, 9.5])    # model B

print(metrics(y, pa))                     # MAE, MedAE, MAPE, MARE, RMSLE, R2, EV
print(paired_comparison(y, pa, pb))       # MAE difference (B - A), bootstrap 95% CI, Wilcoxon p-value

paired_comparison compares two models on the same observations: the 95% interval of the MAE difference comes from a paired bootstrap (resampling observations), and the paired absolute errors are compared with the Wilcoxon signed-rank test.

License: MIT.

Metadata

Release files for bgnx 0.0.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 bgnx 0.0.2
File Size Uploaded Provenance Actions
bgnx-0.0.2.tar.gz 4.7 kB Without provenance Details for bgnx-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 10.3 kB

Release files / bgnx-0.0.2.tar.gz

Download URL bgnx-0.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
519a0adf84cc73d8f3ab96e4a38ccda52df7a5d1a12e7ec027628469bf962b3a
BLAKE2b-256 checksum
How to use checksums
77aef93e9bc73e545ba2cdcdfd0c1db61f74b51ab06c80adb46d77a717bcb99c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / bgnx-0.0.2-py3-none-any.whl

Download URL bgnx-0.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
962d3d40487cc72237bd3ea91c1f02ec67b8854795f1ddaddc3f9d2da6086723
BLAKE2b-256 checksum
How to use checksums
613fdec5e15d4b775776194a73abf061fbd7ca72f46cdd329d606aa8cdd29b41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for bgnx 0.0.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.

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