On Fri, Oct 26, 2012 at 11:06 PM, Olivier Grisel
<olivier.gri...@ensta.org>wrote:
See also:
> http://stackoverflow.com/questions/12738827/how-can-i-call-scikit-learn-classifiers-from-java
>
>
I was thinking at how to use scikit-learn from Java the other day when I
saw this thread. Since it is possible to call Python functions from C and
embed a Python interpreter in C, it should be possible to access a pointer
to a Java array's contents via JNI, create a numpy array from it via
PyArray_SimpleNewFromData and pass it to a python function.
Another remark is that, if you can do the training in Python and only need
Java for predictions, you can sometimes easily re-implement the predict
methods of some estimators (e.g. linear models).
Mathieu
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general