Commit 387d5d2
committed
fix(physics): add voltage auto-detect heuristic to prevent spurious early-exit
PhysicsConstraintLayer now skips voltage scoring when forecast values
are clearly not voltages (below half the lower voltage limit, ~103V).
This prevents synthetic evaluation data (normalised 0-1 features) from
triggering 100% early exit and bypassing the discriminative GNN layer.
The early_exit_threshold default of 0.9 remains correct for real grid
data where physics scores have meaningful variance. The fix is in data
type detection, not threshold tuning.
Key result: hybrid_full ROC-AUC goes from 0.50 to 1.00, ablation now
shows clear component differentiation (GNN=1.0, cascade=0.89,
physics=0.50), and hybrid vs gnn_only achieves p=0.0009 significance.1 parent f1d973f commit 387d5d2
2 files changed
Lines changed: 30 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
181 | 196 | | |
182 | 197 | | |
183 | 198 | | |
| |||
0 commit comments