You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by pseudo oduesp <ps...@gmail.com> on 2016/07/18 09:58:10 UTC

pyspark 1.5 0 save model ?

Hi,
how i can save model under pyspakr 1.5.0  ?
 i use RandomForestClassifier()
thanks in advance.

Re: pyspark 1.5 0 save model ?

Posted by Holden Karau <ho...@pigscanfly.ca>.
If you used RandomForestClassifier from mllib you can use the save method
described in
http://spark.apache.org/docs/1.5.0/api/python/pyspark.mllib.html#module-pyspark.mllib.classification
which will write out some JSON metadata as well as parquet for the actual
model.
For the newer ml pipeline one it seems that the writable traits were added
on April 8th to master - so it isn't available yet.

On Mon, Jul 18, 2016 at 2:58 AM, pseudo oduesp <ps...@gmail.com>
wrote:

> Hi,
> how i can save model under pyspakr 1.5.0  ?
>  i use RandomForestClassifier()
> thanks in advance.
>



-- 
Cell : 425-233-8271
Twitter: https://twitter.com/holdenkarau