Skip to content

[FIX] KMeans: Fix crashes when underlying algorithm fails#1974

Merged
astaric merged 1 commit intobiolab:masterfrom
janezd:fix-kmeans-fail
Feb 3, 2017
Merged

[FIX] KMeans: Fix crashes when underlying algorithm fails#1974
astaric merged 1 commit intobiolab:masterfrom
janezd:fix-kmeans-fail

Conversation

@janezd
Copy link
Contributor

@janezd janezd commented Jan 28, 2017

Issue

If k-means crashed, so does the widget.

Description of changes

The widget now catches exceptions. If k-means fails only for some k's, it still shows the table but disables the corresponding rows. If all fail (or optimization is disabled), it reports an error.

While fixing the table, I also changed the scaling for silhouette, so the the bars are not normalized according to minimal and maximal observed score but between 0 and 1.

Includes
  • Code changes
  • Tests

@janezd janezd changed the title [FIX] KMeans: Fix crashes when underlying algorithm fails [WIP] [FIX] KMeans: Fix crashes when underlying algorithm fails Jan 28, 2017
While fixing the table, improve its layout
@janezd janezd changed the title [WIP] [FIX] KMeans: Fix crashes when underlying algorithm fails [FIX] KMeans: Fix crashes when underlying algorithm fails Jan 28, 2017
@janezd janezd added this to the 3.3.11 milestone Jan 28, 2017
@codecov-io
Copy link

codecov-io commented Jan 28, 2017

Current coverage is 89.45% (diff: 100%)

Merging #1974 into master will not change coverage

@@             master      #1974   diff @@
==========================================
  Files            90         90          
  Lines          9182       9182          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           8214       8214          
  Misses          968        968          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 75de2c8...6c0a8d1

@janezd janezd mentioned this pull request Jan 28, 2017
2 tasks
@astaric astaric modified the milestone: 3.3.11 Jan 30, 2017
@astaric astaric merged commit c80741b into biolab:master Feb 3, 2017
astaric added a commit that referenced this pull request Feb 3, 2017
[FIX] KMeans: Fix crashes when underlying algorithm fails
(cherry picked from commit c80741b)
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