I made many models with scikit learn, and i want to make predictions with these models from a C# program, is there any API which will help me to do that ?.
Asked
Active
Viewed 1.1k times
1 Answers
10
It is not possible to load sklearn models in C# directly (for my knowledge).
There is a language for the language-/tool-independent exchange of ML models called PMML. sklearn doesn't bring native support for PMML however. If you're lucky, your model/pipeline might be exportable to PMML using third party tools and loadable in C# using third party libraries.
The more reliable and way more flexible way is to do the prediction in Python using sklearn and communicate with your C# program via files or (better) a web service. Olivier Grisel (one of the sklearn authors) concisely describes your options in this post.

Michael Tannenbaum
- 325
- 4
- 8