You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transformers used in the HyperTransformer should be configured/selected using similar rules to what we have now. The handling of anonymization will be done in a later issue.
transform(self, data, is_condition): Transform the data using the self.constraints and self.hyper_transformer in that order.
We should copy most of the functionality from here. We just won’t need to do the anonymization step.
reverse_transform(self, data): Reverse transform the data using the self.constraints and self.hyper_transformer in that reverse order.
We should copy most of the functionality from here. Again we can just avoid the pii related stuff.
Additional context
We may consider adding another method called transform_conditions that does all the logic for condition transforming separately. This way the tranform method won't need the is_Condition parameter, and all the if statements in our code designed to handle this special case can be removed and their logic can be broken up into separate methods. This should be more readable.
The text was updated successfully, but these errors were encountered:
Problem Description
The
DataProcessor
class will need to havefit
,transform
andfit_transform
methods.Expected behavior
fit(self, data)
: Fit the all of the constraints created in the init and aHyperTransformer
.HyperTransformer
should be configured/selected using similar rules to what we have now. The handling of anonymization will be done in a later issue.transform(self, data, is_condition)
: Transform the data using theself.constraints
andself.hyper_transformer
in that order.reverse_transform(self, data)
: Reverse transform the data using theself.constraints
andself.hyper_transformer
in that reverse order.Additional context
We may consider adding another method called
transform_conditions
that does all the logic for condition transforming separately. This way thetranform
method won't need theis_Condition
parameter, and all the if statements in our code designed to handle this special case can be removed and their logic can be broken up into separate methods. This should be more readable.The text was updated successfully, but these errors were encountered: