Skip to content
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

Refactor fuzzing logic #1979

Merged
merged 4 commits into from
Apr 25, 2018
Merged

Refactor fuzzing logic #1979

merged 4 commits into from
Apr 25, 2018

Conversation

martinholmer
Copy link
Collaborator

@martinholmer martinholmer commented Apr 24, 2018

This pull request is the last of several pull requests that streamline and speed-up the creation of PUF results in the TaxBrain Interface (tbi) to Tax-Calculator. The earlier pull requests in this series were #1972, #1973 and #1976.

The effects of this series of enhancements are as follows:

  1. The strength of the PUF fuzzing (in terms of maintaining the privacy of PUF filing units) has been increased in two ways: (a) filing units in each bottom and top decile subgroup have been fuzzed; and (b) filing units are considered for fuzzing if their combined tax liability is changed by the reform being simulated.

  2. The speed of results preparation has been increased substantially: (a) the execution time for CPS results preparation is now about 22 seconds (while in Tax-Calculator 0.18.0 it was roughly 100 seconds); and (b) the PUF results preparation (which includes fuzzing) is now about 14 seconds.

  3. The memory space used in results preparation has been reduced: (a) the maximum memory usage when using the full CPS data in a tbi.run_nth_year_tax_calc_model call is now about 3.9 GB (while in Tax-Calculator 0.18.0 it was roughly 5.9 GB); and (b) the maximum memory usage when using the full PUF data in a tbi.run_nth_year_tax_calc_model call is now about 2.2 GB.

@codecov-io
Copy link

codecov-io commented Apr 24, 2018

Codecov Report

Merging #1979 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1979   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files          38      38           
  Lines        3755    3756    +1     
======================================
+ Hits         3755    3756    +1
Impacted Files Coverage Δ
taxcalc/calculate.py 100% <100%> (ø) ⬆️
taxcalc/utils.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19098df...4cb7b2e. Read the comment docs.

@martinholmer martinholmer added ready and removed WIP labels Apr 24, 2018
@martinholmer martinholmer merged commit a8a4629 into PSLmodels:master Apr 25, 2018
@talumbau talumbau removed the ready label Apr 25, 2018
@martinholmer martinholmer deleted the refactor-fuzzing-logic branch April 28, 2018 17:07
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.

3 participants