Lance, some debugging ideas: you might try model.predict(RDD[Vector]) to isolate the cause to serialization of the loaded model. And also try to serialize the deserialized (loaded) model "manually" to see if that throws any visible exceptions.
Sent while mobile. Pls excuse typos etc. On Aug 13, 2014 7:03 AM, "lancezhange" <[email protected]> wrote: > my prediction codes are simple enough as follows: > > *val labelsAndPredsOnGoodData = goodDataPoints.map { point => > val prediction = model.predict(point.features) > (point.label, prediction) > }* > > when model is the loaded one, above code just can't work. Can you catch the > error? > Thanks. > > PS. i use spark-shell under standalone mode, version 1.0.0 > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/How-to-save-mllib-model-to-hdfs-and-reload-it-tp11953p12035.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
