Re:Transform ML models into native code with zero dependencies
by FridgeSeal on Tuesday March 05, 2019 @05:32AM
(#19309618)
If your model framework supports it, you can export it to ONNX and there’s JS frameworks that support serving ONNX models.
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.