1

Context

I want to use Weka clustering algorithm XMeans. However I cannot figure out how to obtain cluster assignments from GUI of Weka.

At the moment I can only see a list of cluster IDs along with percentage of entries assigned to each cluster.

Question

There any way to save cluster assignments for each entry in, e.g. CSV format?

Chris
  • 28,822
  • 27
  • 83
  • 158
Klausos Klausos
  • 15,308
  • 51
  • 135
  • 217

1 Answers1

4

Do everything in the "Preprocess Panel".

This is one way to do this:

  • Load Data File.

  • Remove any Classification Attribute or Identifiers

  • Choose Preprocess / Filter / Unsupervised attribute Filter / AddCLuster

  • Click on the Word "AddCluster", choose the XMeans Clusterer, click Apply.

  • This sghould add a new column "cluster" in the Attribute Panel

  • Click on "Save..." Button to export.

knb
  • 9,138
  • 4
  • 58
  • 85
  • 1
    This is great, however sometimes when I do this I get different clustering results than I get in the Cluster tab, with all of the settings exactly the same (which produces the same results every time in the Cluster tab). What am I missing? – Zann Anderson Jan 19 '18 at 23:19