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 <zhuman.priv...@yahoo.com.invalid> 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: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org