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

Add additional tests, approximate distributions from raw data #22

Merged
merged 34 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1854758
api changes
jdebacker Sep 25, 2023
ad0ddb1
add option for data=None
jdebacker Oct 4, 2023
df5b5e2
fix typo
jdebacker Oct 4, 2023
4645105
temp changes
jdebacker Oct 10, 2023
82b2d2e
raise exception if zero weight
jdebacker Oct 10, 2023
859decf
remove some print commands
jdebacker Oct 10, 2023
189cbdf
use wm function for mtr bins
jdebacker Oct 10, 2023
79ef538
add test of income distribution computation
jdebacker Oct 10, 2023
793f0f9
more conditions to test for distrib
jdebacker Oct 10, 2023
21700cc
add more cases for mtr dist tests
jdebacker Oct 10, 2023
a8d05d4
add data for test cases
jdebacker Oct 10, 2023
a76cc18
remove old files
jdebacker Oct 10, 2023
e17e039
fill missing, better gradient method
jdebacker Oct 15, 2023
a17573f
add test of case with analyitical soln
jdebacker Oct 15, 2023
244a2dd
black format
jdebacker Oct 15, 2023
c3acb93
update sw test
jdebacker Oct 16, 2023
25f665d
remove binning of data
jdebacker Oct 16, 2023
c9672dd
black format
jdebacker Oct 16, 2023
84e3510
smoothing of mtr spline
jdebacker Oct 18, 2023
d46f91a
double spline working ok
jdebacker Oct 21, 2023
49f523d
bin mtr data before smoothing
jdebacker Oct 25, 2023
7912cc4
add kaledio to env for saving plots
jdebacker Oct 25, 2023
a937076
add more ability to modify the baseline policy
jdebacker Oct 25, 2023
6e76508
allow for alternative approach to compute gz
jdebacker Oct 25, 2023
1ae2e44
change some default kwargs
jdebacker Oct 25, 2023
da726a0
update formatting
jdebacker Oct 25, 2023
4343dd0
temp comment out some tests
jdebacker Oct 25, 2023
b65eb9d
move example files to example folder
jdebacker Oct 25, 2023
6c7079b
update example notebook for docs
jdebacker Oct 26, 2023
a83bd49
add label for g_z_numerical
jdebacker Oct 26, 2023
b68bb50
clear up files
jdebacker Oct 26, 2023
61190d4
add notes to test file
jdebacker Oct 26, 2023
adcf098
remove print
jdebacker Oct 26, 2023
529b07f
remove output from compare candidate notebook
jdebacker Oct 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
503,406 changes: 0 additions & 503,406 deletions ComparingCandidatePlatforms.ipynb

This file was deleted.

802,570 changes: 802,041 additions & 529 deletions docs/book/content/example/IOT_example.ipynb
3 changes: 2 additions & 1 deletion environment.yml
239 changes: 239 additions & 0 deletions examples/ComparingCandidatePlatforms.ipynb
15 changes: 13 additions & 2 deletions iot/example.py → examples/example.py
1 change: 1 addition & 0 deletions iot/constants.py
36 changes: 35 additions & 1 deletion iot/generate_data.py
175 changes: 104 additions & 71 deletions iot/inverse_optimal_tax.py
23 changes: 15 additions & 8 deletions iot/iot_user.py
378 changes: 296 additions & 82 deletions iot/tests/test_inverse_optimal_tax.py
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/None_mtr.csv
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/e00200_None_dist.csv
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/e00200_kde_full_dist.csv
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/e00200_kde_subset_dist.csv
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/e00200_log_normal_dist.csv
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/expanded_income_None_dist.csv
500 changes: 500 additions & 0 deletions iot/tests/test_io_data/kr_mtr.csv
500 changes: 0 additions & 500 deletions iot/tests/test_io_data/mtr.csv

This file was deleted.

500 changes: 500 additions & 0 deletions iot/tests/test_io_data/spline_mtr.csv