-
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
Mic-4566/omit-row-update #352
Conversation
DATASETS.wic.name: { | ||
Keys.ROW_NOISE: { | ||
NOISE_TYPES.omit_row.name: { | ||
Keys.ROW_PROBABILITY: 0.005, |
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.
Default value of 0 has been updated for WIC
@@ -468,19 +468,6 @@ def test_get_config(caplog): | |||
assert column_noise_dict[column_noise][Keys.CELL_PROBABILITY] == 0.0 | |||
|
|||
|
|||
def test_omit_rows_do_not_respond_mutex_default_configuration(): |
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.
This test is no longer true as datasets can have both omission types.
tests/integration/test_interface.py
Outdated
if dataset_name in [DATASETS.census.name, DATASETS.acs.name, DATASETS.cps.name]: | ||
# Census and household surveys has no do_not_respond and omit_row. | ||
# For all other datasets they are mutually exclusive | ||
assert len(noise_type) <= 2 |
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.
I'm confused. it looks like census and surveys already have do_not_respond and you just added omit_row. Your comment says the opposite. And I think it should be assert len(noise_type) == 2
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 are right yes it should be 2.
@@ -273,7 +273,7 @@ def test_row_noising_omit_row_or_do_not_respond(dataset_name: str, config, reque | |||
if dataset_name in [DATASETS.census.name, DATASETS.acs.name, DATASETS.cps.name]: | |||
# Census and household surveys has no do_not_respond and omit_row. | |||
# For all other datasets they are mutually exclusive | |||
assert len(noise_type) <= 2 | |||
assert len(noise_type) == 2 |
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.
Fix the comment on line 274
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 except for one comment that needs to be updated
Mic-4566/omit-row-update Add omit row to census and household surveys - *Category*: Feature - *JIRA issue*: [MIC-4566](https://jira.ihme.washington.edu/browse/MIC-4566) Updates -adds omit row to census and household surveys (ACS and CPS) -> docs: https://vivarium-research.readthedocs.io/en/latest/models/concept_models/vivarium_census_synthdata/concept_model.html#row-noise Testing -Updated tests because do not respond and omit row are no logner mutually exclusive. All tests pass
Mic-4566/omit-row-update Add omit row to census and household surveys - *Category*: Feature - *JIRA issue*: [MIC-4566](https://jira.ihme.washington.edu/browse/MIC-4566) Updates -adds omit row to census and household surveys (ACS and CPS) -> docs: https://vivarium-research.readthedocs.io/en/latest/models/concept_models/vivarium_census_synthdata/concept_model.html#row-noise Testing -Updated tests because do not respond and omit row are no logner mutually exclusive. All tests pass
Mic-4566/omit-row-update Add omit row to census and household surveys - *Category*: Feature - *JIRA issue*: [MIC-4566](https://jira.ihme.washington.edu/browse/MIC-4566) Updates -adds omit row to census and household surveys (ACS and CPS) -> docs: https://vivarium-research.readthedocs.io/en/latest/models/concept_models/vivarium_census_synthdata/concept_model.html#row-noise Testing -Updated tests because do not respond and omit row are no logner mutually exclusive. All tests pass
Mic-4566/omit-row-update
Add omit row to census and household surveys
-adds omit row to census and household surveys (ACS and CPS) -> docs: https://vivarium-research.readthedocs.io/en/latest/models/concept_models/vivarium_census_synthdata/concept_model.html#row-noise
Testing
Updated tests because do not respond and omit row are no logner mutually exclusive. All tests pass