Skip to content

Conversation

@juaristi22
Copy link
Collaborator

@juaristi22 juaristi22 commented Jan 29, 2026

Fix #471

This is different from ensuring that the SparseMatrixBuilder produces the same matrix as the "new-cd-var" branch does. There is still functionality missing, such as target uprating or reconciliation across levels. However, given the assumption that a target value in the matrix is the value we want to calibrate to, the SparseMatrixBuilder can correctly compute each household's contribution to that target for ALL variables currently in the database.

I have separated this from implementing all the functionality for the target "preprocessing" that the "new-cd-var" branch does, as I believe there may be room to discuss if we want to do this within the matrix builder or maybe we should be separating responsibilities and doing it as an earlier step (this could mean updating the database with processed targets or other approaches).

Let me know if I missed any key variables by any chance. (Not all targets are tested in CI to not explode the matrix building step but I've made sure to test them locally and update the list in issue #471)

@juaristi22 juaristi22 changed the title calibration vars Supporting all calibration targets with SparseMatrixBuilder Jan 29, 2026
@juaristi22 juaristi22 requested a review from baogorek January 29, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure SparseMatrixBuilder is able to create a sparse matrix to calibrate ALL targets

2 participants