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.3.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.3.0
File Size Uploaded Provenance Actions
idun_numerai-0.3.0.tar.gz 25.4 kB Without provenance Details for idun_numerai-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 55.9 kB

Release files / idun_numerai-0.3.0.tar.gz

Download URL idun_numerai-0.3.0.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cc6c99f712e2287a7e46720faf4c6ec16c1865f47b492682ad8c620956d4419e
BLAKE2b-256 checksum
How to use checksums
ec40fdcda5991fe654a50d87f186f7a3ccb4f125f6ff7345b60a89e38f2383fa
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.3.0-py3-none-any.whl

Download URL idun_numerai-0.3.0-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08ca1f5b554b98f311917ac6c49be400119f1f851a5951efcf5afc59c5ec3d11
BLAKE2b-256 checksum
How to use checksums
628c42167bdf5bda444cc6d547aafdd8c26443cc173c853d79ec7bca0496ffd5
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.3.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