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
Audits probability-forecast calibration rather than sample ranking alone.
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.
📌 定位:概率预测质量审计,覆盖可靠性、评分、阈值表现和时间漂移;不构成投资建议。
| 能力 | 结果 |
|---|---|
| 可靠性分析 | 概率分箱、实际发生率、偏差和加权偏差 |
| 适当评分 | Brier Score 与裁剪后的 Log Loss |
| 校准诊断 | 截距、斜率、ECE/MCE |
| 时间审计 | 连续时间切片、类别平衡和漂移警告 |
pip install -r requirements.txt
python scripts/calibrate_forecasts.py --demo --output-dir out
真实数据运行示例:
python scripts/calibrate_forecasts.py \
--input forecasts.csv \
--output-dir calibration_out \
--threshold 0.5 \
--time-bins 5
| 数据 | 必需字段 | 说明 |
|---|---|---|
forecasts.csv | date,probability,outcome | 概率在 [0,1],结果为 0/1 |
| 分组信息 | 可选 regime 或 --regime-column | 用于子组诊断 |
输出文件:
scored_predictions.csv:原始预测及逐行 Brier/Log Loss 项。reliability.csv:概率分箱、预测均值、实际发生率和偏差。time_metrics.csv:按时间切片的校准指标。summary.json:总体指标、校准系数、类别比例和警告。输入契约 → 概率/标签检查 → 按时间排序 → 连续分箱 → 评分与校准 → 时间漂移审阅
概率只在 Log Loss 的内部计算中裁剪,原始概率会保留在评分输出中。小分箱必须结合样本量、日期范围和类别平衡解释;重新校准时应使用更早窗口训练、更晚窗口验证。
references/source_boundary.md。SKILL.md # Agent 工作流
scripts/calibrate_forecasts.py # 确定性审计脚本
references/input_contract.md # 输入字段与校验规则
references/source_boundary.md # 资料边界
agents/openai.yaml # Agent UI 元数据
agents/cursor-rule.mdc # Cursor 运行时入口
agents/portable-loader.md # Hermes/便携运行时入口
requirements.txt # Python 依赖
node scripts/validate-qsh-form.mjs SKILL.md
python scripts/calibrate_forecasts.py --demo --output-dir out
本仓库仅作研究方法层面的整理,非官方、不隶属任何被研究对象,不验证任何收益声明,不构成任何投资建议。
GNU General Public License v3.0,见 LICENSE。
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.
forecast-calibration-audit@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin forecast-calibration-auditPlugins from other owners that cover similar ground