Skip to main content

idun-numerai

Numerai on top of idun's public interface: Numerai's data in idun's packed format, the walk-forward refits, the labels, Numerai's scores in NumPy, fixed presets for each learner, and model uploads.

pip install idun-numerai    # Python 3.12–3.14; idun's Metal backend needs Apple silicon with macOS 15 or later

Train and score

from idun import gbm
from idun.data import PackedDataset
from idun_numerai import presets
from idun_numerai.data import build_cache
from idun_numerai.download import download
from idun_numerai.score import corr, per_era

download("v6")  # Numerai's v6 training and validation files and the feature list (public data, no credentials)
build_cache("v6", "cache", seed=0)  # streamed into a memory-mapped packed dataset; never the whole panel in memory

data = PackedDataset.open("cache", binning="r2")  # the last walk-forward window's binning
window = data.refits[2]
model = gbm.train(presets.GBM_C, data, rows=slice(0, window.train_hi), backend="metal")
rows = slice(window.pred_lo, window.pred_hi)
scores = per_era(corr, data.era[rows], model.predict(data, rows=rows, backend="metal"), data.target[rows])
  • idun_numerai.download, idun_numerai.data.build_cache: the data, checked and packed (4-bit codes, the named factors binned per window, the country as a categorical column).
  • idun_numerai.refits: the walk-forward windows (training rows, a purge, the predicted rows).
  • idun_numerai.inputs: the labels: classes rint(4 · y) for the networks' classification, per-era z for regression.
  • idun_numerai.presets: fixed configurations of idun_gbm (GBM_C and its seed bag), TabM and RealMLP.
  • idun_numerai.score: NCORR and CORR per era in NumPy and SciPy, as numerai-tools defines them (checked against it per era in the tests; numerai-tools is not a dependency).

Model uploads

Numerai's model uploads run a pickled predict(live_features, live_benchmark_models) on its servers, where idun is not installed. idun_numerai.upload carries trained models as arrays and predicts with NumPy alone:

from idun_numerai import upload

predict = upload.predictor([model, [tabm_s0, tabm_s1], realmlp], data, weights=[2, 1, 1])
upload.save(predict, "model.pkl")  # run under Python 3.12, the runtime's

idun_gbm's upload predictions equal Booster.predict's bit for bit; TabM's and RealMLP's are their float64 reference backend's. A list is a bag (its mean); several entries are blended by rank.

Licence

Apache-2.0.

Metadata

Release files for idun-numerai 0.5.0

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

Source distribution (sdist)

Source distribution for idun-numerai 0.5.0
File Size Uploaded Provenance Actions
idun_numerai-0.5.0.tar.gz 25.4 kB Without provenance Details for idun_numerai-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idun-numerai 0.5.0
File Interpreter ABI Platform Actions
idun_numerai-0.5.0-py3-none-any.whl Python 3 none any Details for idun_numerai-0.5.0-py3-none-any.whl

Total release size: 55.9 kB

Release files / idun_numerai-0.5.0.tar.gz

Download URL idun_numerai-0.5.0.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f5aaed5a245b63baa638b247d1c5b526c41d1cedb1a350b342f167800d1d64be
BLAKE2b-256 checksum
How to use checksums
6600f8256aaebb6cc5212058c56c54f96633ca5a016b783d7a62133fd7e7f1a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / idun_numerai-0.5.0-py3-none-any.whl

Download URL idun_numerai-0.5.0-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cab0c5123a5faf7dac692458f0f7d5de61e39903981531827ae9a15fa1dcbec
BLAKE2b-256 checksum
How to use checksums
f544f797da37081ccd4ca3b00565bd6a04fde927459d2fcfbbee0dddeae81058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for idun-numerai 0.5.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.

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.

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