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

Mic-4566/omit-row-update #352

Merged
merged 4 commits into from
Nov 28, 2023
Merged

Conversation

albrja
Copy link
Contributor

@albrja albrja commented Nov 27, 2023

Mic-4566/omit-row-update

Add omit row to census and household surveys

  • Category: Feature
  • JIRA issue: MIC-4566

-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

DATASETS.wic.name: {
Keys.ROW_NOISE: {
NOISE_TYPES.omit_row.name: {
Keys.ROW_PROBABILITY: 0.005,
Copy link
Contributor Author

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():
Copy link
Contributor Author

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.

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
Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor

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

Copy link
Contributor

@stevebachmeier stevebachmeier left a 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

@albrja albrja merged commit c01df9a into release-candidate/v1.0 Nov 28, 2023
3 checks passed
@albrja albrja deleted the mic-4566/omit-row-update branch November 28, 2023 17:10
rmudambi pushed a commit that referenced this pull request Jan 19, 2024
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
albrja added a commit that referenced this pull request Feb 12, 2024
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
albrja added a commit that referenced this pull request Feb 12, 2024
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
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.

3 participants