spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiangrui Meng <men...@gmail.com>
Subject Re: Store kmeans model
Date Mon, 24 Nov 2014 19:22:55 GMT
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

On Mon, Nov 24, 2014 at 2:21 AM, Jaonary Rabarisoa <jaonary@gmail.com> wrote:
> Dear all,
>
> How can one save a kmeans model after training ?
>
>
> Best,
>
>
> Jao
>

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


Mime
View raw message