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

Add assign_transformers and get_transformers methods to synthesizers #1020

Closed
amontanez24 opened this issue Sep 21, 2022 · 0 comments
Closed
Assignees
Labels
feature request Request for a new feature
Milestone

Comments

@amontanez24
Copy link
Contributor

amontanez24 commented Sep 21, 2022

Problem Description

As a user, it would be useful if I could call a method that autonomously assigns transformers to my data using the metadata. It would also be helpful if I could examine those transformers afterwards.

Expected behavior

Add auto_assign_transformers method to BaseSynthesizer

  • Parameters:
    • data (pd.DataFrame): The raw data.
  • This method should use the DataProcessor to do the following:
    1. Transform the constraints
    2. Create the config for the HyperTransformer and set it
  • This method SHOULD NOT fit the HyperTransformer

Add get_transformers method to BaseSynthesizer

  • This method should return a dictionary mapping the column name to the actual transformer object that will be used. This is essentially the transformers section of the HyperTransformer's config.
  • Errors:
    • If the auto_assign_transformers has not already been called, then this should crash
      Error: No transformers were returned in 'get_transformers'. Use 'assign_transformers' or 'fit' to create them.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants