I have a very large C program that I would to call Python from, for a single method. Specifically, i'd like to have my C code evaluate a trained machine learning model. Having an entire Python interpreter in the code would slow it down too much. I want to go really really fast. What is the correct way to embark on this?
Sadly, there seem to be no good ML libraries for C, other than a few gems coded by bronies with no documentation. Without any explanation it's hardly expectable to import the headers and use it...
I have looked in to using pipes between C and Python to make a fifo file to share the data, but I am looking to do this as quickly as possible because I would like to do this many many times per second. If anyone has a suggestion on how to do this or would like to take a shit on me, I would appreciate it. How to connect my C and Python very very fast?