Skip to content

Make NaN-to-0 postprocessing explicit and document edge case (#39) - #52

Open
Mustaphayinka wants to merge 1 commit into
socialfoundations:mainfrom
Mustaphayinka:clarify-nan-to-num-issue-39
Open

Mustaphayinka wants to merge 1 commit into
socialfoundations:mainfrom
Mustaphayinka:clarify-nan-to-num-issue-39

Conversation

@Mustaphayinka

Copy link
Copy Markdown

Fixes #39

As noted in the issue thread, this preserves the existing NaN→0 behavior so results that depend on it remain reproducible. It also makes that behavior explicit by using nan=0.0 rather than the previous np.nan_to_num(x, -1), which silently relied on the default fill value despite appearing to specify -1.

It also adds a README note about the NaN/0 collision issue in ACSHealthInsurance, which @AndreFCruz identified in the issue thread.

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.

Postprocessing step np.nan_to_num

1 participant