Commit 419d872
Fix CI review R4: persist target_label on HonestDiDResults, render dynamically
- Add target_label field to HonestDiDResults (default: equal-weight avg)
- HonestDiD.fit() detects common l_vec patterns and sets human-readable label
(on-impact, equal-weight, or custom with vector)
- Summary renders hd.target_label instead of hard-coded string
- Add test_honest_did_custom_l_vec_summary_label: attaches custom-target
results and asserts summary shows "on-impact" not "Equal-weight"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a351e2e commit 419d872
File tree
3 files changed
+33
-2
lines changed- diff_diff
- tests
3 files changed
+33
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
2252 | 2253 | | |
2253 | 2254 | | |
2254 | 2255 | | |
2255 | | - | |
| 2256 | + | |
2256 | 2257 | | |
2257 | 2258 | | |
| 2259 | + | |
2258 | 2260 | | |
2259 | 2261 | | |
2260 | 2262 | | |
2261 | 2263 | | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
2262 | 2273 | | |
2263 | 2274 | | |
2264 | 2275 | | |
| |||
2318 | 2329 | | |
2319 | 2330 | | |
2320 | 2331 | | |
| 2332 | + | |
2321 | 2333 | | |
2322 | 2334 | | |
2323 | 2335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3404 | 3404 | | |
3405 | 3405 | | |
3406 | 3406 | | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
3407 | 3426 | | |
3408 | 3427 | | |
3409 | 3428 | | |
| |||
0 commit comments