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

Can't set address columns after fitting #1661

Closed
amontanez24 opened this issue Oct 30, 2023 · 0 comments · Fixed by #1643
Closed

Can't set address columns after fitting #1661

amontanez24 opened this issue Oct 30, 2023 · 0 comments · Fixed by #1643
Assignees
Labels
bug Something isn't working
Milestone

Comments

@amontanez24
Copy link
Contributor

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • SDV version: address_data branch
  • Python version: Any
  • Operating System: Any

Error Description

If you call set_address_columns after fitting or assigning transformers, the transformers are not properly updated. Additionally, sampling will fail.

Steps to reproduce

set_1 = (
    'country of departure','region of departure',
    'region code of departure', 'city of departure',
    'postal code of departure', 'street address of departure',
    'secondary address of departure'
)
synthesizer = GaussianCopulaSynthesizer(metadata, locales=['en_US', 'es_ES'])
synthesizer.auto_assign_transformers(data)
synthesizer.get_transformers()
set_2 = (
    'country of arrival', 'region of arrival', 'region code of arrival',
    'city of arrival', 'postal code of arrival', 'street address of arrival',
    'secondary address of arrival'
)

synthesizer.set_address_columns(column_names= set_2, anonymization_level='street_address')
synthesizer.fit(data)
synthesizer.get_transformers()
synthetic_data = synthesizer.sample(len(data))
@amontanez24 amontanez24 added the bug Something isn't working label Oct 30, 2023
@amontanez24 amontanez24 added this to the 1.6.0 milestone Oct 30, 2023
This was referenced Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants