
$ # clone example-scripts, install MCP, and prompt Codex$ git clone git@github.com:numerai/example-scripts.git$ cd example-scripts && curl -sL https://numer.ai/install-codex-mcp.sh | bash$ codex exec --yolo "find the best neural network architecture to predict target ender"Explore our clean and regularized stock market data, designed to train and evaluate models right away.
| numerai_ticker | date | feature_intelligence_1 | ... | feature_endurance_81 | target |
|---|---|---|---|---|---|
| AAPL US | 2003-01-03 | 3 | ... | 2 | 0.75 |
| AMZN US | 2003-01-03 | 3 | ... | 2 | 0.75 |
| MSFT US | 2003-01-03 | 4 | ... | 2 | 0.25 |
| NVDA US | 2003-01-03 | 0 | ... | 2 | 0.75 |
Each numerai_ticker identifies a stock on a date. The features describe that stock at the time. The target measures future stock performance.
Build a model using the example Python and R scripts.
Everything you need to get started in one package.
#!/usr/bin/env python
"""A small model using the Numerai v6 dataset."""
import json
import pandas as pd
from xgboost import XGBRegressor
# choose a small set of numeric features
with open("v6.0/features.json") as f:
feature_set = json.load(f)["feature_sets"]["small"]
feature_set = [f for f in feature_set if f != "feature_country"]
# load training data and live data
train = pd.read_parquet("v6.0/train.parquet", columns=feature_set + ["target"])
train = train.dropna(subset=["target"])
live = pd.read_parquet(
"v6.0/live.parquet", columns=["numerai_ticker"] + feature_set
).set_index("numerai_ticker")
# train a model to predict the target
model = XGBRegressor(max_depth=5, n_estimators=200)
model.fit(train[feature_set], train["target"])
# predict live data and save a submission file
predictions = pd.Series(model.predict(live[feature_set]), index=live.index)
predictions.rank(pct=True).to_frame("prediction").to_csv("predictions.csv")An example of a complete Numerai model written in Python.
| numerai_ticker | prediction |
|---|---|
| AAPL US | 0.25 |
| AMZN US | 1.00 |
| MSFT US | 0.25 |
| NVDA US | 0.75 |
| JPM US | 0.25 |
| INTC US | 0.00 |
| IBM US | 1.00 |
Example target predictions.
Build reputation to claim your place on the leaderboard.
Stake on your model to earn (or burn) cryptocurrency.
Learn how Numerai combines thousands of models into one meta model to predict the stock market.
Numerai data scientists stake their best models with our cryptocurrency, NMR. Watch the video introducing NMR to our community.
Introduction to Numerai Signals, a tournament for data scientists who have their own data.
Trevor Paglen, CLOUD #865 Hough Circle Transform, 2019
Backed by Union Square Ventures and the co-founder of Renaissance Technologies.
| General enquiries | contact@numer.ai |
| Careers | Wellfound |
| Investor inquiries | investing@numer.ai |
Note: Numerai runs a quantitative global equity market neutral hedge fund which is unsuitable for most investors. The fund is designed for institutional investors though some high net worth accredited individuals may qualify.