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

Calibrate error #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
logo.pdf
logo.png
/tutorials/testenv/
*/__pycache__/
2 changes: 1 addition & 1 deletion source_code/policy_priority_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def run_ppi(I0, alphas, alphas_prime, betas, A=None, R=None, bs=None, qm=None, r
assert np.sum(Imin[~np.isnan(Imin)] > I0[~np.isnan(Imin)]) == 0, 'All entries in Imin should be lower than their corresopnding value in I0'

# Payment schedule
assert type(Bs) is np.ndarray, 'Bs must be a numpy vector or a matrix'
if T is None:
T = 50
if Bs is None:
Expand All @@ -275,6 +274,7 @@ def run_ppi(I0, alphas, alphas_prime, betas, A=None, R=None, bs=None, qm=None, r
else:
T = Bs.shape[1]

assert type(Bs) is np.ndarray, 'Bs must be a numpy vector or a matrix'
assert np.sum(np.isnan(Bs)) == 0, 'Bs should not contain missing values'

# Dictionary linking indicators to expenditure programs
Expand Down
Loading