You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Mina Aslani <as...@gmail.com> on 2018/05/03 03:05:28 UTC

MappingException - org.apache.spark.mllib.classification.LogisticRegressionModel.load

Hi,

I used pyspark to create a Logistic Regression model, train my training
data and evaluate my test data using ML api. However, to use the model in
my program, I saved the model(e.g. Logistic Regression model) and when I
tried to load it in pyspark using

sameModel = LogisticRegressionModel.load(sc,path)
It throws below error:

An error occurred while calling
z:org.apache.spark.mllib.classification.LogisticRegressionModel.load.

: org.json4s.package$MappingException: Did not find value which can be
converted into java.lang.String


Is there a way to load the model in ML instead of MLIB?

Your input is appreciated.


Best regards,

Mina