Great. Thanks a lot.
On 23 Sep 2014 18:44, "Davies Liu-2 [via Apache Spark User List]" <
ml-node+s1001560n14908...@n3.nabble.com> wrote:
> Right now, there is no way to access JVM in Python worker, in order
> to make this happen, we need to do:
>
> 1. setup py4j in Python worker
> 2. serialize the
Right now, there is no way to access JVM in Python worker, in order
to make this happen, we need to do:
1. setup py4j in Python worker
2. serialize the JVM objects and transfer to executors
3. link the JVM objects and py4j together to get an interface
Before these happens, maybe you could try to
Hi Davies,
Thanks for the reply. I saw that you guys do that way in the code. Is
there no other way?
I have implemented all the predict functions in scala, so I prefer not
to reimplement the whole thing in python.
thanks,
On Tue, Sep 23, 2014 at 5:40 PM, Davies Liu wrote:
> You should create
You should create a pure Python object (copy the attributes from Java object),
then it could be used in map.
Davies
On Tue, Sep 23, 2014 at 8:48 AM, jamborta wrote:
> Hi all,
>
> I have a java object that contains a ML model which I would like to use for
> prediction (in python). I just want to