Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Evaluates quantitative factors with IC, IR, stratified backtests, monotonicity, turnover, and decay diagnostics.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文 | English
IC 测试与因子评估体系:为 Alpha 因子研发提供统一、可复用、可落地的 IC 测试、因子评估与可视化报告生成能力。
skill-factor-evaluation 是 QuantSkills 组织提供的因子评估 Skill。它用于对 Alpha 因子进行 IC 测试、分层回测、换手率分析、衰减曲线等全方位评估,并生成科研级 HTML 可视化报告。
QuantSkills GitHub 组织:https://github.com/quantskills
当你研发了一个新的 Alpha 因子,需要快速、标准化地评估其横截面预测能力时,可以使用本 Skill。
它会自动完成:
flowchart LR
A["📥 因子面板<br/>trade_date<br/>ts_code<br/>factor_value<br/>forward_return"] --> B["🔧 数据校验<br/>字段映射<br/>类型检查<br/>主键去重"]
B --> C["📊 指标计算<br/>IC/RankIC<br/>分层回测<br/>换手率/衰减"]
C --> D["📈 可视化报告<br/>SVG 图表<br/>达标表<br/>诊断摘要"]
D --> E["💾 生产输出<br/>Parquet<br/>JSON 报告"]
style A fill:#e3f2fd,stroke:#1976d2
style C fill:#fff3e0,stroke:#f57c00
style E fill:#e8f5e9,stroke:#388e3c
输入数据必须包含以下四个核心字段:
| 字段 | 类型 | 说明 |
|---|---|---|
trade_date | date/string | 信号日期 |
ts_code | string | 标的代码 |
factor_value | float | 因子值 |
forward_return | float | 该信号对应的未来收益 |
支持字段别名:date → trade_date、asset → ts_code、factor → factor_value、return → forward_return
可选多周期收益列(用于衰减曲线):forward_return_1d、forward_return_2d、forward_return_3d、forward_return_5d、forward_return_10d、forward_return_20d
pip install pandas numpy pyarrow
from scripts.build import run, write_report, write_production
# 运行评估
result = run(input_data, config={
"group_mode": "quintile", # 五分组
"turnover_quantile": 0.8, # 顶部 20% 换手率
"decay_horizons": [1, 2, 3, 5, 10, 20],
"annualization_factor": 252,
"data_version": "your-data-version",
})
# 生成 HTML 报告
report_path = write_report(input_data, "reports/factor_report.html", config={
"target_id": "my_factor",
"group_count": 5,
})
# 写入生产 Parquet
write_production(input_data, "生产产物/数据库.parquet", config={
"data_version": "daily-factor-eval-v1",
})
# 单次评估:生成 Parquet + HTML 报告
python scripts/daily_runner.py --input factor_panel.csv --output reports/ --production 生产产物/
# 一键演示(不联网,合成数据)
python scripts/demo.py
python scripts/demo.py --group-mode decile # 十分组
python scripts/demo.py --bootstrap-n 200 --cost-grid-bps 1,3,5,10 # 噪声基线 + 成本扫描
| 配置 | 默认值 | 说明 |
|---|---|---|
group_mode | quintile | 分组模式:quintile/5/五分组 或 decile/10/十分组 |
group_count | 5 | 分层数量 |
turnover_quantile | 0.8 | 换手率顶部组合阈值 |
decay_horizons | [1,2,3,5,10,20] | 衰减曲线评估周期 |
factor_direction | positive | 因子方向:positive / negative / auto |
target_kind | return | 目标类型:return 或 binary_success |
annualization_factor | 252 | 多空 IR 年化倍数 |
stock_pool | all_a | 股票池:all_a、hs300、zz500、zz1000、zz2000 |
bootstrap_n | 0 | Bootstrap 噪声基线次数(0=关闭) |
cost_grid_bps | [] | 交易成本扫描(单位 bps) |
neutralize | false | 是否做行业+风格中性化 |
research_diagnostics | false | 是否启用 V7 研究诊断 |
完整配置说明见 开发产物/references/api_guide.md。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
build-b10-factor-evaluation@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin build-b10-factor-evaluationPlugins from other owners that cover similar ground