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

Update zipcode miswriting #70

Merged
merged 8 commits into from
Apr 14, 2023
Merged

Update zipcode miswriting #70

merged 8 commits into from
Apr 14, 2023

Conversation

albrja
Copy link
Contributor

@albrja albrja commented Apr 14, 2023

Update zipcode miswriting

Updates zipcode miswriting function and default configuration to take list of probabilities and changes key name.

-Changes additional parameters to a list of probabilities for each of the 5 digits in a zipcode
-Changes key name to digit probabilities for the configuration

Testing

All tests pass successfully.

@albrja albrja requested a review from a team as a code owner April 14, 2023 19:02
Comment on lines 155 to 158
scaled_digit_prob = [
p * scaleup_factor for p in configuration[Keys.ZIPCODE_DIGIT_PROBABILITIES]
]
digit_probabilities = np.array(scaled_digit_prob)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
scaled_digit_prob = [
p * scaleup_factor for p in configuration[Keys.ZIPCODE_DIGIT_PROBABILITIES]
]
digit_probabilities = np.array(scaled_digit_prob)
digit_probabilities = scaleup_factor * np.array(scaled_digit_prob)

@albrja albrja merged commit 84ae12d into develop Apr 14, 2023
@albrja albrja deleted the update-zipcode-miswriting branch April 14, 2023 20:34
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.

2 participants