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
Often variables have a formula applying to a population, but will only ever be calculated for a subset of that population. For example, in the US, we have State tax variables for every State (relevant only to tax units in that State). Or, in all systems, we have benefit variables relevant only to entities which meet qualification criteria.
Right now, because of how OpenFisca is implemented using vectorised functions, we carry out all computations on the entire population for which a variable is defined. This creates unnecessary computation, and I think there's a way to avoid that without changing anything fundamental about the OpenFisca interface, and without stopping to use vectorised functions.
This is of importance to us in the US system, so I'm going to begin developing a solution using monkey-patching in OpenFisca-Tools. But it'd be much cleaner (and more accessible to other countries) to implement in OpenFisca-Core. Would Core be open to this feature?
Often variables have a formula applying to a population, but will only ever be calculated for a subset of that population. For example, in the US, we have State tax variables for every State (relevant only to tax units in that State). Or, in all systems, we have benefit variables relevant only to entities which meet qualification criteria.
Right now, because of how OpenFisca is implemented using vectorised functions, we carry out all computations on the entire population for which a variable is defined. This creates unnecessary computation, and I think there's a way to avoid that without changing anything fundamental about the OpenFisca interface, and without stopping to use vectorised functions.
I'm envisioning something like:
This is of importance to us in the US system, so I'm going to begin developing a solution using monkey-patching in OpenFisca-Tools. But it'd be much cleaner (and more accessible to other countries) to implement in OpenFisca-Core. Would Core be open to this feature?
cc @benjello @MattiSG @sandcha
The text was updated successfully, but these errors were encountered: