Hi Vadim,
As Yanbo pointed out, that feature is not yet merged into the main branch.
However, there is a hacky workaround:
// save model
sc.parallelize(Seq(model), 1).saveAsObjectFile("path")
// load model
val sameModel = sc.objectFile[YourCLASS]("path").first()
Best regards, Alexander
From: Yanbo Liang [mailto:[email protected]]
Sent: Sunday, December 13, 2015 8:44 PM
To: Vadim Gribanov
Cc: [email protected]
Subject: Re: How to save Multilayer Perceptron Classifier model.
Hi Vadim,
It does not support save/load for Multilayer Perceptron Model currently, you
can track the issues at
SPARK-11871<https://issues.apache.org/jira/browse/SPARK-11871>.
Yanbo
2015-12-14 2:31 GMT+08:00 Vadim Gribanov
<[email protected]<mailto:[email protected]>>:
Hey everyone! I’m new with spark and scala. I looked at examples in user guide
and didn’t find how to save Multilayer Perceptron Classifier model to HDFS.
Trivial:
model.save(sc, “NNModel”)
Didn’t work for me.
Help me please.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]<mailto:[email protected]>
For additional commands, e-mail:
[email protected]<mailto:[email protected]>