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.1.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.1.0
File Size Uploaded Provenance Actions
idun_numerai-0.1.0.tar.gz 22.7 kB Without provenance Details for idun_numerai-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 50.0 kB

Release files / idun_numerai-0.1.0.tar.gz

Download URL idun_numerai-0.1.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0f1f4982f5229e0e8c971d577459fa5a3c79f25e11e698a6b011d79e44facaf6
BLAKE2b-256 checksum
How to use checksums
52f572586eca178b590c5ec7266d5425b4d2fe7d8c44ec9047c8c77aa2303fe7
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.1.0-py3-none-any.whl

Download URL idun_numerai-0.1.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6f17f64a52f215ea487c4a38b5310f0ea2dc06bd9337fffc2299f06b40c59ae
BLAKE2b-256 checksum
How to use checksums
7db566136c4697002934796975c45b50e830456e49f1530879fdff1ab7352f34
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.1.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.1.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