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
Optimizes quantitative multi-factor model hyperparameters with fixed validation and trial-level evidence.
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
项目定位 / Project Positioning
本项目是面向 Codex / QUANTSKILLS 的模型超参数搜索 Skill,用于在给定本地因子和标签后,对 LGBM / MLP 多因子模型进行 evidence-driven LLM decision 搜索空间调整或确定性 grid 搜索。
本仓库不是因子库,不负责生成 Alpha 因子,也不是生产级组合回测引擎;它提供的是可运行、可检查、可归档的模型超参数研究工作流。
本项目作为 QUANTSKILLS 社区贡献提交,不代表官方认证、投资建议或生产交易验证。
维护者:QUANTSKILLS 社区贡献者。
不是因子库,也不是回测引擎,而是一个面向量化多因子模型的 HPO Skill:把“寻找一组可复现实验参数”拆成数据读取、训练验证、trial evidence 记录、搜索空间决策、最终参数输出等标准步骤。
role: skill platform: codex category: tooling status: active validation: runnable output: best-hyperparameters paradigm: evidence-driven hpo / grid search
skill-model-hpo-evidence-driven 是一个自包含的 QUANTSKILLS 社区贡献 Skill。它支持两类搜索方式:
keep / expand / shift / narrow / stop。search.space 离散为预算化 Cartesian grid,或直接使用显式 grid_trials,用于确定性超参数搜索。本仓库提供的是一套研究工作流:从本地因子和标签出发,训练 LGBM / MLP 候选模型,使用验证集指标选择最佳参数,并输出可审计 JSON / CSV / Markdown 产物。Holdout 指标只用于最终报告,不反馈给搜索过程。
模型超参数研究常见的失败模式包括:
本 Skill 会提供:
grid_trialslegacy_v1 复现旧版 rankic_ir、逐 trial seed 和自动测试集评估research_v2,启用严格 point-in-time、共同 seed、多 seed 确认和封存 holdout1. 准备本地 factor CSV/parquet 和 label CSV/parquet
2. 准备 input JSON,指定 model_type、search.method、validation、evaluation 和 search.space
3. 运行 smoke test,确认路径、数据 schema、训练和输出契约可用
4. 每个 trial 训练 LGBM 或 MLP,并计算验证集指标
5. evidence-driven 模式下,runtime 汇总 trial evidence,由 LLM decision 文件或规则控制器决定下一轮搜索空间
6. grid 模式下,runtime 固定展开参数组合并按预算顺序评估
7. 输出 leaderboard、confirmation artifacts、best_params 和 search_report
8. `legacy_v1` 自动输出测试结果;`research_v2` 冻结参数后再用独立命令启封 holdout
9. 后续做交易成本、风险暴露和组合级验证
默认 LGBM smoke test:
python scripts/run_hpo_search.py --input examples/hpo_lgbm_smoke.json
默认输出目录来自 input JSON 中的 output_root,例如:
outputs/lgbm_smoke/<run_id>/
至少需要两个本地表格文件:
feature_path:因子文件,必须包含 date、ticker 列和数值型因子列label_path:标签文件,必须包含同样的 date、ticker 列和标签列,默认 y(date, ticker) 样本(date, ticker) 不允许重复available_date、label_start_date、label_end_date 可选;缺失时 runtime 会给出 point-in-time / label-window 风险提示示例输入文件:
examples/hpo_lgbm_smoke.json
examples/hpo_mlp_smoke.json
examples/hpo_lgbm_grid_search.json
examples/hpo_mlp_grid_search.json
examples/hpo_lgbm_codex_external.json
examples/hpo_custom_extension_smoke.json
关键字段见:
references/input_schema.md
本 Skill 的 LLM decision 通过 decision_provider.type=codex_external 承载:runtime 写出 evidence 和 decision template 文件,由外部 LLM/Agent 补充 decision JSON,再由 runtime 做 schema 和边界校验。
skill-model-hpo-evidence-driven/
├── SKILL.md # Agent skill 入口
├── README.md / README.en.md # 用户向介绍
├── requirements.txt # Python 运行依赖
├── examples/
│ ├── hpo_lgbm_smoke.json # LGBM evidence-driven smoke 示例
│ ├── hpo_mlp_smoke.json # MLP evidence-driven smoke 示例
│ ├── hpo_lgbm_grid_search.json # LGBM generated grid 示例
│ ├── hpo_mlp_grid_search.json # MLP generated grid 示例
│ ├── hpo_lgbm_grid_smoke.json # 显式 grid_trials 示例
│ ├── hpo_lgbm_codex_external.json # LLM decision 示例
│ ├── hpo_custom_extension_smoke.json # 自定义 provider/pipeline/model 示例
│ ├── toy_factors.csv # toy 因子数据
│ └── toy_labels.csv # toy 标签数据
├── references/
│ ├── source_boundary.md # 数据、LLM 决策与研究边界
│ ├── input_schema.md # 输入字段说明
│ ├── output_contract.md # 输出产物契约
│ ├── extension_api.md # 用户扩展接口与变量说明
│ ├── codex_external_workflow.md # LLM decision handoff 说明
│ └── validation_notes.md # 假设、限制与风险边界
├── scripts/
│ ├── run_hpo_search.py # CLI 入口
│ ├── run_offline_final_selection.py # 离线最终参数选择入口
│ ├── run_holdout_evaluation.py # 显式、可审计的 holdout 入口
│ └── hpo_runtime/ # 自包含 HPO runtime
├── extension_templates/
│ └── example_extensions.py # 独立的用户扩展示例区
└── agents/
├── openai.yaml # Codex/agent metadata
├── cursor-rule.mdc # Cursor rule metadata
└── portable-loader.md # 非原生 Skill 平台加载提示
安装依赖:
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.
model-hpo-evidence-driven@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin model-hpo-evidence-drivenPlugins from other owners that cover similar ground