numerai/example-scripts/numerai-model-implementation

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Add a new Numerai model type to the agents training pipeline. Use when you need to register a model in `agents/code/modeling/utils/model_factory.py`, handle fit/predict quirks in `agents/code/modeling/utils/numerai_cv.py`, and update configs so the model can run via `python -m agents.code.modeling`.

Install

npx vskill@latest install numerai/example-scripts/numerai-model-implementation

SKILL.md

Numerai Model Implementation

Overview

Add a new model type so it can be selected in configs and trained/evaluated by the base pipeline.

Note: run commands from numerai/ (so agents is importable), or from repo root with PYTHONPATH=numerai.

Implement a New Model Type

  1. Define the model API and output shape.
  • Implement fit(X, y, sample_weight=...) and predict(X).
  • Put custom wrappers in agents/code/modeling/models/ so model-specific code stays isolated.
  • Accept pandas DataFrames or convert to NumPy inside the model wrapper.
  1. Register the model constructor in agents/code/modeling/utils/model_factory.py.
  • Use lazy imports so optional dependencies do not break other workflows.
  • Raise a clear ImportError when the dependency is missing.
python
if model_type == "XGBRegressor":
try:
from xgboost import XGBRegressor
except ImportError as exc:
raise ImportError(
"xgboost is required for XGBRegressor. Install with `.venv/bin/pip install xgboost`."
) from exc
return XGBRegressor(**model_params)
  1. Add or update a config to use the new model type.
python
CONFIG = {
"model": {"type": "XGBRegressor", "params": {"n_estimators": 500}},
"training": {"cv": {"n_splits": 5}},
"data": {"data_version": "v5.3", "feature_set": "small", "target_col": "target", "era_col": "era"},
"output": {},
"preprocessing": {},
}
  1. Add extra data columns if the model needs them.
  • Update load_and_prepare_data in agents/code/modeling/utils/pipeline.py to pass extra columns into load_full_data.
  • Add corresponding config entries so experiments stay reproducible.

Validate

  • Run a smoke test: .venv/bin/python -m agents.code.modeling --config <config_path>.
  • Run metrics on the smoke test and make sure corr_mean is > 0.005 and < 0.04. If it's less then something is probably fundamentally wrong. If it's higher than there is likely leakage and you need to find the problem.
  • Double check that any early stopping mechanisms or modifications to the fit/predict loop don't over-estimate accuracy. Accurately estimating performance is of paramount importance on Numerai because we need to be able to decide if we should stake or not.
  • Run unit tests after refactors: .venv/bin/python -m unittest.

Next Steps

After validating the model implementation:

  1. Use the numerai-experiment-design skill to run multiple rounds of experiments (4–5 configs per round), then scale winners until you hit a plateau.
  2. Use the numerai-model-upload skill to create a pkl file only after you have a stable, scaled “best model” you intend to deploy.
  3. Deploy to Numerai using the MCP server (see numerai-model-upload skill for deployment workflow).

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,120
Repository forks
306
7-day trend score
35

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/numerai/example-scripts/numerai-model-implementation/badge)](https://verified-skill.com/skills/numerai/example-scripts/numerai-model-implementation)

Something wrong with this skill or its page? Tell us.