You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Gen <ge...@gmail.com> on 2014/12/12 16:41:37 UTC
Cannot pickle DecisionTreeModel in the pyspark
Hi everyone,
I am trying to save the decision tree model in python and I use
pickle.dump() to do this. However, it returns the following error
information:
/cPickle.UnpickleableError: Cannot pickle <type 'thread.lock'> objects/
I did some tests on the other model. It seems that decision tree model is
the only model in pyspark that we cannot pickle.
FYI: I use spark 1.1.1
Do you have any idea to solve this problem?(I dont know whether using scala
can solve this problem or not.)
Thanks a lot in advance for your help.
Cheers
Gen
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Cannot-pickle-DecisionTreeModel-in-the-pyspark-tp20661.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org