<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Obtaining cluster centres details from K-Means algorithm in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348201#M42045</link>
    <description>&lt;P&gt;You can also use the cluster distance to calculate centroids of a sort:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| 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
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://image.ibb.co/fJx75w/Screen_Shot_2017_11_01_at_9_36_02_AM.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 16:40:34 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2017-11-01T16:40:34Z</dc:date>
    <item>
      <title>Obtaining cluster centres details from K-Means algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348199#M42043</link>
      <description>&lt;P&gt;I am using K-Means algorithm from Machine Learning toolkit to cluster some data.&lt;BR /&gt;
After algorithm has converged i can see two new fields appended to the original data - cluster ID and cluster distance. &lt;/P&gt;

&lt;P&gt;This is great, however I also need cluster centre details for each cluster. I need this information to calculate distance to each cluster centre from new data points and then assign these data points to the appropriate cluster.&lt;/P&gt;

&lt;P&gt;Is there any way to accomplish this in Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 15:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348199#M42043</guid>
      <dc:creator>kiril123</dc:creator>
      <dc:date>2017-11-01T15:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining cluster centres details from K-Means algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348200#M42044</link>
      <description>&lt;P&gt;You can inspect the KMeans model you built with fit using the summary command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| summary &amp;lt;your_model_name&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Although, if you're trying to assign new points to the appropriate cluster, you can simply apply your model:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;new_points&amp;gt; | apply &amp;lt;your_model_name&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2017 16:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348200#M42044</guid>
      <dc:creator>aoliner_splunk</dc:creator>
      <dc:date>2017-11-01T16:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining cluster centres details from K-Means algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348201#M42045</link>
      <description>&lt;P&gt;You can also use the cluster distance to calculate centroids of a sort:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| 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
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://image.ibb.co/fJx75w/Screen_Shot_2017_11_01_at_9_36_02_AM.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 16:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348201#M42045</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2017-11-01T16:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining cluster centres details from K-Means algorithm</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348202#M42046</link>
      <description>&lt;P&gt;This is great. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 16:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Obtaining-cluster-centres-details-from-K-Means-algorithm/m-p/348202#M42046</guid>
      <dc:creator>kiril123</dc:creator>
      <dc:date>2017-11-01T16:47:01Z</dc:date>
    </item>
  </channel>
</rss>

