Weka EM Clustering numClusters Flow variable

Hi everyone, I am trying to control the number of clusters for the EM Clustering Weka node, but when looking at the Flow variables I cannot find the correct one.

According to the node documentation when you leave -1 in numClusters the number of clusters are automatically calculated, but you can change it to other number greater than 0

Best Regards


Hi Mau,

that’s a good question. I don’t think any of the options directly represent the number of clusters.
Are you using Weka 3.6? The corresponding 3.7 node has a parameter N that seems to be what you are looking for. Maybe you could update?

Alternatively, you could try setting the additional_options variable with a value of “-N 5” or similar.

Hope this helps :slight_smile:

Kind regards,