tabctx-mcp: prediction intervals in the predict tool's output

未关闭 适合新手
#111 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

先从 src/tabctx/mcp_tools/tools.py 和 tests/unit/fake_deployment.py 中的回归分位数行为入手;然后阅读 tests/unit/test_mcp_tools.py 中相关的测试。为回归 CSV 输出和返回的前几行添加两个区间列,并在 src/tabctx/mcp_tools/SKILL.md 中记录它们。完成标准是:这些列按该顺序紧跟在预测列之后,分类输出保持不变,并且 uv run pytest tests/unit -n auto 通过。

由索引模型根据 Issue 内容生成。

描述

area/api enhancement good first issue

Agents using tabctx-mcp see point predictions only. Since 0.19, a regression predict can return quantiles from the same model call (TabctxRegressor.predict_quantiles), so the predict tool can show each row's interval at no extra cost.

What to do

  • In src/tabctx/mcp_tools/tools.py, for a regression model, add <target>_p05 and <target>_p95 columns to the predictions CSV and to the top rows the tool returns, using estimator.predict_quantiles(X, [0.05, 0.95]).
  • Mention the columns in src/tabctx/mcp_tools/SKILL.md (agents read it), e.g. "a 90% interval: say how sure the model is".
  • Tests in tests/unit/test_mcp_tools.py, against tests/unit/fake_deployment.py (its regression quantile at level q is the row's first feature plus q, so expected values are easy to write).

Done when

  • A regression predict writes the two columns, in that order, right after the prediction column.
  • Classification output is unchanged.
  • uv run pytest tests/unit -n auto passes.

Good first issue: one module plus its tests, no GPU needed.

主要语言
Python
星标
1
派生
1
平均合并
6 小时 45 分钟
30 天内合并 PR
66

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

VectorInstitute/tabctx 的其他 Issue

查看 VectorInstitute/tabctx 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。