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.2.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.2.0
File Size Uploaded Provenance Actions
idun_numerai-0.2.0.tar.gz 22.9 kB Without provenance Details for idun_numerai-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 50.4 kB

Release files / idun_numerai-0.2.0.tar.gz

Download URL idun_numerai-0.2.0.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c5f783179f13166b4a3ba5ad7f1aa218078ca486c345e03a03ac1d49d6478de0
BLAKE2b-256 checksum
How to use checksums
e8ceec543b2aa82c0d54e3347fbc2fa587ba5e669eed250eed9bd582da6cff09
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.2.0-py3-none-any.whl

Download URL idun_numerai-0.2.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40b7a1719c46a65cdfdf6b9298945bb1568b8a48fcfb0119fe9129446e15e020
BLAKE2b-256 checksum
How to use checksums
7f047dce5425fd14e55eae906e2436b198ced057becc60e7acd456153b633734
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.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 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