-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update TaxBrain and Tax-Calculator to handle UBI and CPS specific inputs #668
Comments
@hdoupe said in issue #668 wrt adding CPS and UBI/benefits to TaxBrain:
This is a major undertaking with many parts. As with anything this large, I think you, and the others involved, would benefit from applying the well-known divide-and-conquer computer-programming strategy. I think you should give serious consideration to dividing this into at lease two pieces: first make the CPS input file work with TaxBrain, then after that is done, add the benefits/UBI capabilities to Tax-Calculator and TaxBrain. Essentially, I'm suggesting you "refactor" your work plan. |
@martinholmer said
Breaking this project up into chunks is a good way to think about this project. Thank you for your advice.
I agree with this breakdown. Further, we can start on the first phase while we are still fleshing out the details of what will be required in the second phase. I think that the three main requirements for the first phase would be
Since benefits data would not be included at this point, I do not think that anything else would have to be modified. |
OK, items 1 and 2 on your list are TaxBrain enhancements. Item 3 on your list involves some coordination between TaxBrain and Tax-Calculator. |
@martinholmer these are valid concerns.
Yes, even though by setting
Another valid concern. It is difficult to ensure that setting
This is a good idea. I am not familiar with My main motivation for using the My main concern with using Furthermore, a longer term goal for PolicyBrain is to be able to quickly set up models on the PolicyBrain platform. To ease the burden on PolicyBrain developers and give more control to the model developers, a requirement could be for new models to have one function that serves as an interface to PolicyBrain. This function would receive all of the relevant modeling information and return the results. This strategy is up for debate and can be hashed out further in the future. For these reasons, I think my initial approach of hacking the dropq functions was wrong, and I think a better approach would be to develop a TaxBrain interface function in Tax-Calculator that contains the logic of running the model and returning the results. Part of this logic would be sending data to |
@hdoupe concluded a thoughtful comment in the discussion of issue #668 as follows:
I think I understand your suggestion and it makes a lot of sense to me. I'll begin thinking about such a "universal" function (that is, one that would work with I'd appreciate any more detailed thoughts you have about such a function. What would be the function arguments? And what exactly should be returned in order to meet TaxBrain needs? |
@martinholmer said
Great, that would be very helpful. I have a couple ideas on the arguments.
So, my proposed function would be something like:
The results that are returned now are fine with me. @andersonfrailey and @Amy-Xu do you know what the new outputs will be? |
Thanks for thinking about this in more detail. Your thoughts are very helpful.
|
@martinholmer had two questions:
Currently, if the user chooses the quick-calc option, only a sample of the PUF data is sent to the Tax-Calculator. If we keep it this way, then nothing would change for simulations using the PUF. However, an extra parameter indicating that we are using the quick-calc option would be needed if the simulation uses the CPS. Alternatively, we could send the entire PUF data set over for all runs and a flag indicating whether this is a quick-calculation or not. Then, the sub-sample would be chosen in Tax-Calculator.
Ah, right. I think this causes a problem with the idea of having one function to serve as an interface between TaxBrain and Tax-Calculator. I think we could make it work if we just have two different types of output. However, in the future, if we have 3 or 4 or more different types of output, then I can see this implementation getting more and more complicated. Now that I'm thinking more about this idea, as we call this universal function in more and more different ways, it will become pretty complicated for this function to figure out what TaxBrain wants it to do. I guess what I'm getting at is that this implementation wouldn't scale very well if we add more apps on TaxBrain that use Tax-Calculator. @martinholmer what do you think about this? |
@hdoupe said:
Agreed. I've started working on a Tax-Calculator pull request that will allow TaxBrain to use either |
Sounds good. Thanks @martinholmer |
@martinholmer I'm going to keep this issue open and check off the corresponding item on the list above. |
@hdoupe, Sorry about issue #668 being closed prematurely. |
@martinholmer said:
It's because of the bolded part of this sentence in 1577: "So, this pull request is an attempt to resolve PolicyBrain issue 668." |
@MattHJensen, Thanks for the tip in #668 on how GitHub takes action based on what you write. |
The goal of this issue is to outline the requirements for putting the CPS and UBI parameters on TaxBrain. The proposed steps are:
This is a tentative outline. I encourage all feedback, especially on whether some items should be added/removed or on ideas for implementing these items.
@MattHJensen @Amy-Xu @andersonfrailey @martinholmer @GoFroggyRun
The text was updated successfully, but these errors were encountered: