Commit cd1b5a3
♻️ remove ShannonLoss, add domain-specific loss types (ConvergenceLoss, RoutingLoss)
ShannonLoss was a generic information-theoretic placeholder. Replace with
three domain-specific loss types that carry semantic meaning:
- ConvergenceLoss: distance to crystal (steps remaining, combine = max)
- ApertureLoss: redesigned with aperture fraction field (combine = union + max)
- RoutingLoss: decision uncertainty (entropy + runner-up gap, combine = max)
Imperfect<T, E, L> no longer has a default type parameter — callers must
choose their loss type explicitly. 74 tests pass.1 parent 037b7ec commit cd1b5a3
3 files changed
Lines changed: 583 additions & 294 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments