Symbolic Regression Benchmark Framework
PyPI · Docs · Interactive results
srbf: Symbolic Regression Benchmark Framework
srbf evaluates symbolic-regression models on shared benchmarks with shared metrics. It is the
Symbolic Regression Benchmark Framework carved out of
flash-ansr: the Benchmark driver, model adapters, and
metrics, over symbolic-data catalogs. It depends one-way on flash-ansr (srbf imports
flash-ansr; flash-ansr never imports srbf).
Built for contributions. Developers of SR methods add their model by opening a PR with an
adapter (two methods plus a registered builder) plus install instructions. The built-in adapters (flash_ansr, pysr,
nesymres, e2e, lample_charton, brute_force) are reference examples, not a closed set. See the
adapter contribution guide.
Status: 0.6, data-layer redesign. The benchmark seam (
srbf.coreProtocols + theBenchmarkdriver) is model-agnostic, the data source is always asymbolic-datacatalog, and adapters are a thin mapper over each model (flash-ansr viaFlashANSR.infer()). Inline!sweepconfig cross-products and multi-draw bootstrap reporting (bootstrap_report/draw_distribution) ship in this release.
Install
pip install srbf # benchmark driver + metrics + the flash-ansr adapter (usable out of the box)
pip install "srbf[baselines]" # + PySR and other pip baseline deps (sympy, pysr, omegaconf)
srbf pulls in flash-ansr, symbolic-data, and simplipy automatically, and requires
Python >= 3.12. The PySR adapter ships in the base wheel but the pysr package (plus a
Julia precompile) comes with the [baselines] extra, so a bare install does not include a
runnable PySR baseline. The unpackaged research baselines (NeSymReS, E2E) are provisioned
out-of-band; see docs/models.md.
Quickstart
# 1. point srbf at a tree holding configs/, data/, and models/ (your srbf checkout works)
export FLASH_ANSR_ROOT=$(pwd)
# 2. get a model to evaluate (flash-ansr's CLI ships with srbf)
flash_ansr install psaegert/flash-ansr-v23.0-3M
# 3. run an evaluation. The config names a symbolic-data catalog (`fastsrb` / `v23-val`); it is
# fetched from Hugging Face on first use and cached, so there is no local data-build step.
# The config is a sweep over candidate counts; --sweep-filter picks one rung for a smoke test.
srbf run -c configs/evaluation/scaling/v23.0-3M_fastsrb.yaml --sweep-filter ladder=32 --limit 50 -v
Outputs land under results/evaluation/.../*.pkl, one row per evaluated problem with the raw
prediction columns (derive FVU / recovery / F1 in a separate step; see
docs/running.md). Run programmatically instead:
from srbf import Benchmark
# A config with inline !sweep / experiments expands to several runs; expand and run each one.
for benchmark in Benchmark.runs_from_config("configs/evaluation/scaling/v23.0-3M_fastsrb.yaml"):
benchmark.run() # resume-aware; a no-op if that run's configured target is already reached
# For a single, fully-resolved run (no !sweep / experiments), use from_config directly:
# Benchmark.from_config(config_dict).run()
Documentation
| Guide | What it covers |
|---|---|
| Running evaluations | the srbf run CLI, config anatomy (data_source / model_adapter / runner / experiments / !sweep), outputs, resume, reporting |
| Benchmarks & datasets | the data_source catalog block, the shipped catalogs (v23-val, fastsrb, lample-charton-v23), custom catalogs |
| Models & provisioning | installing/patching the built-in models; the model_adapter block per type |
| Fairness & provenance | one protocol for every method, the upstream-defaults policy, config-provenance labels, blessed configs |
| Adding your model | the adapter protocol + registry, and the PR flow to contribute a new SR method |
Development
pip install -e ".[dev]"
pre-commit run --all-files
pytest tests
License
MIT (see LICENSE). Third-party attributions in THIRD_PARTY_LICENSES.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file srbf-0.10.0.tar.gz.
File metadata
- Download URL: srbf-0.10.0.tar.gz
- Upload date:
- Size: 89.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d05e604a2b52ba6f375c7290b9ca50c2393b6b75407704519c32ed49659a1211
|
|
| MD5 |
4d3559adb7f786359ce45ff87fd9478f
|
|
| BLAKE2b-256 |
8edf4db014f37d9bf3021b013daa9139549d72a3280851123f45ed4f0b91fbe8
|
Provenance
The following attestation bundles were made for srbf-0.10.0.tar.gz:
Publisher:
publish.yaml on psaegert/srbf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
srbf-0.10.0.tar.gz -
Subject digest:
d05e604a2b52ba6f375c7290b9ca50c2393b6b75407704519c32ed49659a1211 - Sigstore transparency entry: 2073805275
- Sigstore integration time:
-
Permalink:
psaegert/srbf@e196cb1eef4ec77fa942082baf6eba171c9dd71f -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/psaegert
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@e196cb1eef4ec77fa942082baf6eba171c9dd71f -
Trigger Event:
release
-
Statement type:
File details
Details for the file srbf-0.10.0-py3-none-any.whl.
File metadata
- Download URL: srbf-0.10.0-py3-none-any.whl
- Upload date:
- Size: 96.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c79b22b651fd7a2045de1f3603d8878282955c46480969863a2301cfe86be299
|
|
| MD5 |
d461f4dc0155747ead7a6aed6c361dff
|
|
| BLAKE2b-256 |
d1c8b00e2547079a96f37833b5bfd97068d51eb5bfb691607fc8b16dfb0d8171
|
Provenance
The following attestation bundles were made for srbf-0.10.0-py3-none-any.whl:
Publisher:
publish.yaml on psaegert/srbf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
srbf-0.10.0-py3-none-any.whl -
Subject digest:
c79b22b651fd7a2045de1f3603d8878282955c46480969863a2301cfe86be299 - Sigstore transparency entry: 2073805293
- Sigstore integration time:
-
Permalink:
psaegert/srbf@e196cb1eef4ec77fa942082baf6eba171c9dd71f -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/psaegert
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@e196cb1eef4ec77fa942082baf6eba171c9dd71f -
Trigger Event:
release
-
Statement type: