-
-
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] Linear Discriminant Analysis: scripting part #2823
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2823 +/- ##
==========================================
- Coverage 82.09% 82.07% -0.02%
==========================================
Files 327 328 +1
Lines 56166 56155 -11
==========================================
- Hits 46107 46092 -15
- Misses 10059 10063 +4 |
Orange/projection/lda.py
Outdated
__all__ = ["LDA"] | ||
|
||
|
||
class _FeatureScorerMixin(LearnerScorer): |
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.
Is this mixin exactly the same as with PCA? If so, why is a separate one used?
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.
Removed.
Orange/projection/lda.py
Outdated
super().__init__(lda_transform) | ||
self.projection = projection | ||
self.feature = feature | ||
self.transformed = None |
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.
Who uses "transformed" and "projection"? Why are these here?
Orange/projection/lda.py
Outdated
compute_value=LDAProjector(self, i, lda_transform)) | ||
v.to_sql = LinearCombinationSql( | ||
domain.attributes, self.components_[i, :], | ||
getattr(self, 'mean_', None)) |
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.
Did you test the sql variant?
Also, needs a rebase before merging... |
Orange/tests/test_lda.py
Outdated
@classmethod | ||
def setUpClass(cls): | ||
cls.ionosphere = Table('ionosphere') | ||
cls.iris = Table('iris') |
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.
Can you remove unused files too? Sorry for not noticing this before.
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.
Thank you!
Issue
No Linear Discriminant Analysis projection scripting part.
Description of changes
Scripting part written like PCA or FreeViz.
Includes