Re: Store kmeans model

2014-11-24 Thread Xiangrui Meng
KMeansModel is serializable. So you can use Java serialization, try sc.parallelize(Seq(model)).saveAsObjectFile(outputDir) sc.objectFile[KMeansModel](outputDir).first() We will try to address model export/import more formally in 1.3, e.g., https://www.github.com/apache/spark/pull/3062 -Xiangrui

Store kmeans model

2014-11-24 Thread Jaonary Rabarisoa
Dear all, How can one save a kmeans model after training ? Best, Jao