How to calculate the centroid of each cluser after using KMeans clustering algorithm?
I have tried the following but none of them worked:
1 -
| inputlookup iris.csv | fit KMeans k=3 petal* |eval point_size = 1 | appendpipe [| stats mean(petal*) as petal* by cluster | eval species = "Centroid: ".cluster | eval point_size = 2] | fields species petal* point_size
2- showcentroid = t