[FIX] KMeans clear results on k change, do not recluster#2915
[FIX] KMeans clear results on k change, do not recluster#2915lanzagar merged 4 commits intobiolab:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2915 +/- ##
==========================================
+ Coverage 82.1% 82.12% +0.02%
==========================================
Files 328 328
Lines 56262 56392 +130
==========================================
+ Hits 46194 46313 +119
- Misses 10068 10079 +11 |
4fe83c0 to
7b20a0d
Compare
|
This looks ok to me. Just one question. When I change metas with Select Columns and don't have Apply Automatically selected in k-Means, the data still gets transmitted through the widget (the output changes). I would expect the output not to change, unless I press Apply. Correct me, if I am wrong. p.s. I could not reproduce the mentioned issue, but everything works for me, so no complaints here. |
|
You're right, this is not expected. I'll fix it right away. The issue was a bit subtle, but you can notice it if you look at the output in a data table and look at how the clusters change. Open k-means on e.g. iris, disable auto-apply and run optimization from 2-8 clusters. Show the output in a data table, selecting 2 clusters will give values C1 and C2, as expected. Now change the parameter "from" to 5 without pressing "Apply". The results will still show the previous range 2-8, but now selecting 2 will output clusterings for k=5 (values C1-C5), which is wrong (as seen on image). |
fecd5b7 to
fcb4f44
Compare
fcb4f44 to
9020874
Compare

Issue
Description of changes
Fix both issues. Based on #2901. Remove possibility of crash on settings migrations (not that this ever happened)
Includes