-
-
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] PCA - Output instance of table subclass when instance of table subclass on input #6536
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #6536 +/- ##
=======================================
Coverage 87.68% 87.68%
=======================================
Files 321 321
Lines 69403 69406 +3
=======================================
+ Hits 60857 60860 +3
Misses 8546 8546 |
@@ -355,10 +355,9 @@ def commit(self): | |||
self.data.domain.attributes, | |||
self.data.domain.class_vars, | |||
self.data.domain.metas + domain.attributes) | |||
data = Table.from_numpy( | |||
data_dom, self.data.X, self.data.Y, | |||
numpy.hstack((self.data.metas, transformed.X)), |
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.
How about replacing everything about this output with the code below? Sure, then, these are transformed twice, but I think this transformation is fast enough so that we do not need to worry.
data = self.data.transform(add_columns(self.data.domain,
metas=domain.attributes))
This is what @noahnovsak did on the dask brach.
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.
Forgot about this option. It is done now.
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.
Now you do not need the next part (under with:
)
137367a
to
75399dc
Compare
Issue
When PCA receives Corpus on input,
Transformed Data
outputs Corpus instance whileData
outputs Table.Description of changes
Data
output outputs the instance of Table subclass (e.g. Corpus) in the described situation.Includes