Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exporting python sklearn models to production (java/c++)

I trained a computer vision classifier consisting of 2 components: a kernel PCA transformation of the data and a SVM binary classification model.

These models are trained in Python using SKlearn, but I'd like to use them for an actual computer vision task in c++ and later possibly Java. What's the best way to export my models to a different environment? Is there a smart way to do this or will I simply have to hand code all parameters in a new language?

like image 662
Sander Avatar asked Oct 24 '25 09:10

Sander


1 Answers

I'm working on a project called sklearn-porter which ports trained models to a low level programming language like C, Java and JavaScript. More classifiers and regressors will be added at given time. Have a look!

like image 109
Darius Avatar answered Oct 26 '25 01:10

Darius