Browse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the us
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-alpha-zoo-b51580b31e3b ,按照其中的说明把「alpha-zoo」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
When the user asks about prebuilt cross-sectional alphas — Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart — or wants to bench a whole zoo on an investable universe (CSI 300, S&P 500, BTC-USDT, ...), this skill orients you. The zoo is the curated library; the bench is the evaluator.
| Tool | When to use |
|---|---|
alpha_zoo | Browse the library. action=list_alphas to enumerate (filterable by zoo / theme / universe), action=get_alpha for one alpha's metadata, action=health for registry load status. |
alpha_bench | Run IC / IR on one alpha or a whole zoo over a universe + period. Emits an HTML report. |
factor_analysis | Ad-hoc factor evaluation from a user-supplied factor CSV + return CSV. Use this when the user has their own factor (not in the zoo). |
alpha_zoo with action=list_alphas, theme=momentum.alpha_zoo with action=get_alpha, alpha_id=gtja191_alpha_001.alpha_bench with zoo=gtja191, universe=csi300, period=2020-2024.alpha_zoo with action=health — surfaces loaded, failed, and per-error reasons.my_factor.csv → factor_analysis (zoo tools are for prebuilt alphas only).| Zoo | Description | Approx. count |
|---|---|---|
kakushadze101 | Formulaic alphas from Kakushadze's 2015 paper. Mix of momentum, reversal, volume, and microstructure. | ~101 |
gtja191 | Guotai Junan 191 alphas — A-share focused cross-sectional factors. | ~191 |
qlib158 | Microsoft Qlib's 158 alpha factors — features tuned for ML pipelines. | ~158 |
classical | Fama-French 3/5-factor + Carhart momentum. | <10 |
Counts are nominal; check alpha_zoo action=health for the live count currently loaded.
delta(df, d) requires d >= 1; the negative-shift Ref(df, -n) form does not exist. See docs/alpha-zoo/spec.md for the full operator catalogue.alpha_bench returns universe loader for X not yet implemented, that's the W2 scaffold — the universe is recognised but the data pull lands in W4.~/.vibe-trading/reports/ by default; refer to it by that shorthand, not by the resolved absolute path.alpha_zoo is read-only. alpha_bench writes a single HTML file per run — no scratch state elsewhere.list_alphas: theme / universe must match the alpha's declared metadata exactly (e.g. equity_cn, not cn or china).alpha_bench with both alpha_id and zoo set — they are mutually exclusive; pick one.loaded=0) means no zoo modules are populated yet; treat it as "zoos pending W3 porting" rather than a bug.docs/alpha-zoo/spec.mdsrc/factors/registry.py (frozen; do not modify)src/factors/factor_analysis_core.py