Skip to content
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] KMeans: Fix crashes when underlying algorithm fails #1974

Merged
merged 1 commit into from
Feb 3, 2017

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