-
Notifications
You must be signed in to change notification settings - Fork 295
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
Conversation
@@ -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): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this 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): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
metadata=metadata, | ||
default_distribution='norm', | ||
enforce_rounding=False | ||
) |
There was a problem hiding this comment.
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
Resolve #1082.