All Apps and Add-ons

How to calculate the centroid of each cluser after using KMeans clustering algorithm?

Ra27
Loves-to-Learn Lots

 

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

Labels (1)
0 Karma
Get Updates on the Splunk Community!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...