You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Neha Mehta <ne...@gmail.com> on 2016/05/30 10:21:19 UTC
Can we use existing R model in Spark
Hi,
I have an existing random forest model created using R. I want to use that
to predict values on Spark. Is it possible to do the same? If yes, then how?
Thanks & Regards,
Neha
Re: Can we use existing R model in Spark
Posted by sujeet jog <su...@gmail.com>.
Try to invoke a R script from Spark using rdd pipe method , get the work
done & and receive the model back in RDD.
for ex :-
. rdd.pipe("<FileName.R>")
On Mon, May 30, 2016 at 3:57 PM, Sun Rui <su...@163.com> wrote:
> Unfortunately no. Spark does not support loading external modes (for
> examples, PMML) for now.
> Maybe you can try using the existing random forest model in Spark.
>
> On May 30, 2016, at 18:21, Neha Mehta <ne...@gmail.com> wrote:
>
> Hi,
>
> I have an existing random forest model created using R. I want to use that
> to predict values on Spark. Is it possible to do the same? If yes, then how?
>
> Thanks & Regards,
> Neha
>
>
>
Re: Can we use existing R model in Spark
Posted by Sun Rui <su...@163.com>.
Unfortunately no. Spark does not support loading external modes (for examples, PMML) for now.
Maybe you can try using the existing random forest model in Spark.
> On May 30, 2016, at 18:21, Neha Mehta <ne...@gmail.com> wrote:
>
> Hi,
>
> I have an existing random forest model created using R. I want to use that to predict values on Spark. Is it possible to do the same? If yes, then how?
>
> Thanks & Regards,
> Neha
>