In 1.3, you can use model.save(sc, "hdfs path"). You can check the code examples here: http://spark.apache.org/docs/latest/mllib-collaborative-filtering.html#examples. -Xiangrui
On Fri, Apr 3, 2015 at 2:17 PM, Justin Yip <[email protected]> wrote: > Hello Zhou, > > You can look at the recommendation template of PredictionIO. PredictionIO is > built on the top of spark. And this template illustrates how you can save > the ALS model to HDFS and the reload it later. > > Justin > > > On Fri, Apr 3, 2015 at 9:16 AM, S. Zhou <[email protected]> wrote: >> >> I am new to MLib so I have a basic question: is it possible to save MLlib >> models (particularly CF models) to HDFS and then reload it later? If yes, >> could u share some sample code (I could not find it in MLlib tutorial). >> Thanks! > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
