-
-
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
[FIX] Unique domain checks #4760
[FIX] Unique domain checks #4760
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4760 +/- ##
==========================================
+ Coverage 83.86% 83.87% +0.01%
==========================================
Files 281 276 -5
Lines 56804 56057 -747
==========================================
- Hits 47638 47020 -618
+ Misses 9166 9037 -129 |
f306a28
to
3efcb43
Compare
Tests started to fail due to the new scikit release. Hope this PR fixes it #4768 |
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 have a few comments that you can ignore, and one that needs checking, in OWPCA.
In the future: commits should have (more) self contained names. Preferrably start with a widget or module name, then write what you changed, like the later commits in this PR.
@@ -545,8 +545,7 @@ def _commit_predictions(self): | |||
|
|||
attrs = list(self.data.domain.attributes) | |||
metas = list(self.data.domain.metas) | |||
|
|||
names = [var.name for var in chain(attrs, [self.class_var], metas)] | |||
names = [var.name for var in chain(attrs, [self.class_var], metas) if var] |
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.
Why didn't you just use domain.class_vars
, like in silhouette?
(Change if you wish, ignore if you don't.)
This reverts commit 53299b8.
bd2c7ac
to
2c60ff3
Compare
Regarding Feature Constructor: variables are renamed one by one, immediately when created. Change of name is visible in gui immediately. |
2c60ff3
to
b0bfdaf
Compare
Orange/widgets/unsupervised/owpca.py
Outdated
dom = Domain( | ||
[ContinuousVariable(a.name, compute_value=lambda _: None) | ||
for a in self._pca.orig_domain.attributes], | ||
metas=[StringVariable(name=meta_var)]) | ||
metas=[StringVariable(name='component')]) |
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 fear you reverted too much.
Outputs "Data" and "Transformed data" don't need checking (as far as I see) but the third output, Components, still does. If apply PCA to data that contains a variable named "component", I get a table with two variables named "component".
Issue
Fixes #4382
Includes