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 transformer methods to PARSynthesizer #1118

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

fealho
Copy link
Member

@fealho fealho commented Nov 28, 2022

Resolve #1082.

@fealho fealho changed the title Add changes Add transformer methods to PARSynthesizer Nov 28, 2022
@@ -167,6 +167,23 @@ def preprocess(self, data):
self.update_transformers(sequence_key_transformers)
return super().preprocess(data)

def update_transformers(self, column_name_to_transformer):
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm only adding update_transformers because the other two methods are already implemented in base.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be good. Can you double check that the correct transformers are assigned when calling auto_assign_transformers? For PAR, everything should be None except for datetimes

@fealho fealho marked this pull request as ready for review November 28, 2022 17:46
@fealho fealho requested a review from a team as a code owner November 28, 2022 17:46
@fealho fealho requested review from pvk-developer and amontanez24 and removed request for a team November 28, 2022 17:46
Copy link
Contributor

@amontanez24 amontanez24 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 pending the answer to one question

@@ -167,6 +167,23 @@ def preprocess(self, data):
self.update_transformers(sequence_key_transformers)
return super().preprocess(data)

def update_transformers(self, column_name_to_transformer):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be good. Can you double check that the correct transformers are assigned when calling auto_assign_transformers? For PAR, everything should be None except for datetimes

Copy link
Member

@pvk-developer pvk-developer left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines -35 to -38
metadata=metadata,
default_distribution='norm',
enforce_rounding=False
)
Copy link
Member

Choose a reason for hiding this comment

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

🤔 wondering why lint did not capture it

@fealho fealho merged commit 47b1d11 into V1.0.0.dev Dec 1, 2022
@fealho fealho deleted the issue-1082-add-transformer-methods branch December 1, 2022 21:56
amontanez24 pushed a commit that referenced this pull request Dec 21, 2022
amontanez24 pushed a commit that referenced this pull request Feb 17, 2023
amontanez24 pushed a commit that referenced this pull request Mar 23, 2023
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.

None yet

3 participants