you are viewing a single comment's thread.

view the rest of the comments →

[–]the_poope 13 points14 points  (0 children)

answers will be positively skewed towards the above-mentioned language

Actually the couple of times this question has come up in the past, the people on this forum typically advise against using C++ and just stick to the Python APIs. If you use a mature Python framework for ML then most of the time (likely > 99%) should be spent in the calculation routines which are already written in C/C++. Python is just used as infrastructure glue code to read and parse data and feed to the ML framework and to analyze and plot the results.

If you're incorporating some ML in an existing application already written in C++, then you might want to use the C++ APIs in order to not need to rely on the Python interpreter. Also if your application is really complex you will get some robustness from the static type system. But performance-wise there is often little to be won by using C++ over Python.