Transform ML models into native code with zero dependencies
github.com
github.com
https://github.com/nok/sklearn-porter Supports many scikit-learn models to Java/C/JavaScript/Go/Ruby, at least since 2016.
https://github.com/konstantint/SKompiler transpiles to Excel/SQL
https://github.com/jonnor/emlearn To C only, focus on microcontrollers/embedded devices. Includes feature extraction tools also. Disclaimer: I wrote it.
Related: https://onnx.ai/
It transforms keras + theano models into pure C++, no additional packages. It is not using GPU.
However, the important part of most models is not the `estimator.fit(X, y)` line, but all the things that are done to X before fitting or estimating.
Haven't looked through the source but it looks like the generated code is a essentially the weights from a trained model transformed into a function for the target language.
Not to criticize this project. This looks nice and has many useful applications.
* owner and main contributor of sklearn-porter