1

I am using Weka for clustering some data and was running into a very odd problem. When I use the normal "Cluster" Tool on a data set, I am getting a result of

Cluster 1: 87 instances
Cluster 2: 88 instances
Cluster 3: 181 instances

This is what I sort of expected from the data I had, so I consider this a good result. However, I want to add this cluster as a class and save it as a new .arff file, so I am trying to use the "Add Cluster" filter that Weka provides. Now, in this filter, I select the same clusterer (EM for this experiment), and ensure that all settings are the same (even the seed number). When I apply this, I get the much worse result of

Cluster 1: 87 instances
Cluster 2: 43 instances
Cluster 3: 226 instances

This is clearly different than before, but I don't know why. I have double-checked all my settings to make sure they are identical, so I am pretty sure it is not a result of this. Also, in this question, Zannjaminderson comments on the answer that he has the same problem, so it may just not be me (I would comment to see how/if he fixed it, but alas I do not have 50 rep).

One thing that I thought could affect the result was what the clustering was trained on. In the original clustering, I used the whole training set, but for the "Add Cluster" clustering, I don't think it specifies what it trains on, so this could be the source of the error. Ultimately, my question is this: Why is this discrepancy happening and what can I do (if anything) to stop it?

Alerra
  • 1,479
  • 11
  • 25
  • maybe set "KMeansRuns = 1" in the EM Configuration dialogs? – knb Jul 27 '18 at 07:21
  • I just tried this, and unfortunately the disparity still exists. Not only that, but also it seems like both classifiers actually got slightly worse with respect to their classification, which would make sense as only running KMeans one time is likely to not produce the optimal result. – Alerra Jul 27 '18 at 12:45
  • Clustering in Weka just isn't very good. – Has QUIT--Anony-Mousse Jul 30 '18 at 19:52
  • @Anony-Mousse Welp, that is unfortunate if that really is just how it is. Thanks for at least not making my tear out my hair over this for another day :) – Alerra Jul 31 '18 at 14:07

0 Answers0