You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by ashensw <as...@wso2.com> on 2015/08/20 08:14:48 UTC

How to get the radius of clusters in spark K means

We can get cluster centers in K means clustering. Like wise is there any
method in spark to get the cluster radius?



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-get-the-radius-of-clusters-in-spark-K-means-tp24353.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Re: How to get the radius of clusters in spark K means

Posted by Ashen Weerathunga <as...@wso2.com>.
Okay. Thanks.
I already did that and wanted to check whether is there any other method to
extract it from the model itself. Thanks again for the help.

On Thu, Aug 20, 2015 at 8:39 PM, Robin East <ro...@xense.co.uk> wrote:

> There is no cluster radius method on the model returned from K-means.
> You’ll need to roll it yourself by generating the distance from each point
> in the cluster to the cluster center itself and then take the max.
>
>
> -------------------------------------------------------------------------------
> Robin East
> *Spark GraphX in Action* Michael Malak and Robin East
> Manning Publications Co.
> http://www.manning.com/malak/
>
> On 20 Aug 2015, at 07:14, ashensw <as...@wso2.com> wrote:
>
> We can get cluster centers in K means clustering. Like wise is there any
> method in spark to get the cluster radius?
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-get-the-radius-of-clusters-in-spark-K-means-tp24353.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>
>


-- 
*Ashen Weerathunga*
Software Engineer - Intern
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

Email: ashen@wso2.com
Mobile: +94 716042995 <94716042995>
LinkedIn:
*http://lk.linkedin.com/in/ashenweerathunga
<http://lk.linkedin.com/in/ashenweerathunga>*