test(dbn): pin the sklearn transform delegation #1620
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.27) × (1 − Review Confidence (0.32)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.27 · 56 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 59% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.242
Real PR Conversation Timeline
1 comments
"Review active on #1620"
general
weight: 0.35
copilot-pull-request-reviewer[bot]
目的
Pipeline users call transform(); a dropped delegation returns the raw input and silently disables the learned representation.
改动
tests/test_dbn_transform.py(新增 1 个用例)验证
return self.forward(data_in)→return data_in→ 1 failed;随后还原源码。文档
测试即契约(见各用例 docstring 与断言)。
查重
UnsupervisedDBN.transform0 命中;#1512 覆盖 forward 本身AI 辅助说明
本次改动在 AI 辅助下完成(ZCode),断言与实现逐行核对。
Closes #1619