-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] Transform: Add new widget #3346
Conversation
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.
After you decide about the suggestion about handling the exception, I'd merge it unless @BlazZupan has any further comments.
Orange/widgets/data/owtransform.py
Outdated
def apply(self): | ||
self.transformed_data = None | ||
if self.data is not None and self.preprocessor is not None: | ||
self.transformed_data = self.preprocessor(self.data) |
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.
Preprocessor could raise an exception here. I think the widget has to catch and report it. Maybe something like "An error occurred while transforming data", and the second line (visible only on tooltip) would contain the exception message.
Codecov Report
@@ Coverage Diff @@
## master #3346 +/- ##
==========================================
+ Coverage 82.21% 82.26% +0.04%
==========================================
Files 351 353 +2
Lines 62349 62513 +164
==========================================
+ Hits 51262 51426 +164
Misses 11087 11087 |
Works as intended. Therefore merge. The documentation and subsequently a blog, once the widget enters the distribution, are missing. Also, for testing, could we release both widgets (PCA, Transform) into Prototypes (change name to, say, Test PCA, and Test Transform)? |
Issue
Implements #3342
Description of changes
Includes