You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make zero-valued calibration targets intentionally nonzero-weighted #104
Zero-valued targets should still receive nonzero calibration loss weight.
Why:
A zero target can be meaningful, especially at small geography levels or sparse breakdowns.
If a state or local target is zero but the dataset estimates a positive value, the optimizer should see that error instead of silently ignoring the row.
This also makes target diagnostics easier to reason about when expanding the target surface.
Current context:
The current fiscal refresh loss weighting appears to use max(abs(target), 1.0) before applying sqrt target-value weights, so zero targets are not literally zero-weighted today.
We should make that behavior explicit and protected by tests/diagnostics, not incidental.
Acceptance criteria:
Zero-valued amount and count targets get a finite positive loss weight.
A regression test covers zero-valued targets under the active amount/count 50/50 target-weighting scheme.
The target-weight explorer or calibration diagnostics exposes the number of zero-valued targets and their assigned weight range.
Document the intended zero-target treatment near the loss-weighting code.
Addressed by #1198 (commit 1082c68). Under the default scale, zero-valued targets keep a positive loss weight. The solve and score options carry a zero_targets census, and test_zero_targets_keep_a_positive_loss_weight_under_split_weighting pins the behaviour. #1198 said "Addresses #104", so this issue didn't close on merge. The target-weight rule itself is now under #1301.
Activity
Re-pin the US spec digest and the diesel donor factor the engine lane…
Say what the UC area bridge reconciles, and correct stale text (#1198 …
Keep zero-valued targets in the loss on purpose and census them (#104, …
Re-pin the digests #104's solve.py edit moves (#1123)
Re-pin the US spec digest and the diesel donor factor the engine lane…
Say what the UC area bridge reconciles, and correct stale text (#1198 …
Reconcile the rebased target surface with main's #1113, #940 and #1178
Keep zero-valued targets in the loss on purpose and census them (#104, …
Re-pin the digests #104's solve.py edit moves (#1123)
Re-pin the US spec digest and the diesel donor factor the engine lane…
Say what the UC area bridge reconciles, and correct stale text (#1198 …
Reconcile the rebased target surface with main's #1113, #940 and #1178
juaristi22 commentedon Oct 16, 2026
Addressed by #1198 (commit 1082c68). Under the default scale, zero-valued targets keep a positive loss weight. The solve and score options carry a
zero_targetscensus, andtest_zero_targets_keep_a_positive_loss_weight_under_split_weightingpins the behaviour. #1198 said "Addresses #104", so this issue didn't close on merge. The target-weight rule itself is now under #1301.