问题
I need to call sklearn function on matlab. I have heard that there are some problems in calling numpy function and sklearn is based on numpy.
Is there any guide about that?
回答1:
For Python I see different solutions:
- COM on Windows platforms. This requires to register an application, check if this is possible and allowed on the cluster.
- XMLRPC or SOAP. You may need to use Java-Classes in Matlab, but as you already realised this is very simple. Verify that the cluster has a Java VM available, many run matlab without java.
- You can embed python code into c/c++, which allows you to write mex functions which run c code: http://docs.python.org/2/extending/embedding.html
- Create a .Net assembly using IronPython, matlab supports .net
来源:https://stackoverflow.com/questions/22887022/how-to-call-python-and-sklearn-from-matlab