Skip to content

[FIX] owpca: Handle the case of 0 total variance in the PCA solution#1897

Merged
astaric merged 2 commits intobiolab:masterfrom
ales-erjavec:fixes/pca-all-const-col
Jan 11, 2017
Merged

[FIX] owpca: Handle the case of 0 total variance in the PCA solution#1897
astaric merged 2 commits intobiolab:masterfrom
ales-erjavec:fixes/pca-all-const-col

Conversation

@ales-erjavec
Copy link
Copy Markdown
Contributor

Issue

Fixes gh-1896

Description of changes
  • Check for 0 total variance in the pca solution and display a warning.
  • Prevent a NaN value to propagate into self.variance_covered.
Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 9, 2017

Current coverage is 89.25% (diff: 100%)

Merging #1897 into master will not change coverage

@@             master      #1897   diff @@
==========================================
  Files            86         86          
  Lines          9100       9100          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           8122       8122          
  Misses          978        978          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update e92b6aa...ec907c7

@astaric astaric added this to the 3.3.10 milestone Jan 9, 2017
* Check for 0 total variance in the pca solution and display a warning.
* Prevent a NaN value to propagate into `self.variance_covered`.

Fixes biolabgh-1896
`variance_covered` was persisted as a NaN value (biolabgh-1897), causing a
TypeError in the widget's `__init__`.
@ales-erjavec ales-erjavec force-pushed the fixes/pca-all-const-col branch from 5c14f84 to ec907c7 Compare January 9, 2017 12:48
@astaric astaric merged commit ce7912e into biolab:master Jan 11, 2017
astaric added a commit to astaric/orange3 that referenced this pull request Jan 11, 2017
[FIX] owpca: Handle the case of 0 total variance in the PCA solution
(cherry picked from commit ce7912e)
astaric added a commit to astaric/orange3 that referenced this pull request Jan 13, 2017
[FIX] owpca: Handle the case of 0 total variance in the PCA solution
(cherry picked from commit ce7912e)
astaric added a commit to astaric/orange3 that referenced this pull request Jan 18, 2017
[FIX] owpca: Handle the case of 0 total variance in the PCA solution
(cherry picked from commit ce7912e)
@ales-erjavec ales-erjavec deleted the fixes/pca-all-const-col branch January 27, 2017 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants