-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement targeted omission do_not_respond for census and surveys #158
Conversation
CI breaking atm due to linting. I'll correct in the morning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Feel free to merge once you've addressed the comment about default row noise and the float equality question in the test.
pd.Interval(50, 125), | ||
] | ||
|
||
DO_NOT_RESPOND_ADDITIVE_PROBABILITY_BY_SEX_AGE: Dict[str, pd.Series] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it.
9ca9549
to
fefccbb
Compare
@@ -129,7 +129,8 @@ def test_noise_order(mocker, dummy_data, dummy_config_noise_numbers): | |||
|
|||
call_order = [x[0] for x in mock.mock_calls if not x[0].startswith("__")] | |||
expected_call_order = [ | |||
"omission", | |||
# "omit_rows", # Census doesn't use omit_rows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a FIXME to update this to another dataset that does have omit_rows
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You already have a FIXME to do something other than census. Do you have a ticket for that? Otherwise, we ought to create one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It didn't look like one existed, so I created MIC-4037.
Implement targeted omission do_not_respond for census and surveys
Note: a previous version of this PR aimed at a deleted develop branch is here
Description
Changes
Testing
All tests work.