how to call python and sklearn from matlab? [duplicate]

老子叫甜甜 提交于 2019-12-13 08:08:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!