MLlib only supports Euclidean distance for k-means. You can find
Bregman divergence support in Derrick's package:
http://spark-packages.org/package/derrickburns/generalized-kmeans-clustering.
Which distance measure do you want to use? -Xiangrui

On Tue, May 12, 2015 at 7:23 PM, June <[email protected]> wrote:
> Dear list,
>
>
>
> I am new to spark, and I want to use the kmeans algorithm in mllib package.
>
> I am wondering whether it is possible to customize the distance measure used
> by kmeans, and how?
>
>
>
> Many thanks!
>
>
>
> June

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to