#242242nd of 433 in ML frameworks and libraries
sklearn-porter
Transpiles trained scikit-learn models to C, Java, JavaScript, Go and more
Watch puts sklearn-porter on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.sklearn-porter is on your watch list. Its new releases and problems show there.
- Stars
- 1.3k
- License
- BSD-3-Clause
- Last commit
- Nov 2026
- Last release
- Jan 2019
- Language
- Python
1,299 on 6 May 20261,303 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
sklearn-porter converts fitted scikit-learn estimators and transformers into source code in C, C#, Go, Java, JavaScript, PHP and Ruby. The generated code predicts without Python, for embedded systems, browsers or existing applications. It covers 21 classifiers, 21 regressors, 2 outlier detectors and many preprocessing, feature extraction and selection transformers, plus Pipelines.
Who it is for: Engineers deploying scikit-learn models to embedded, browser or non-Python apps
Strengths
- Seven target languages, with three templates: attached, exported JSON, or combined if-else logic
- Covers trees, boosting, linear models, SVMs, MLPs, preprocessing and Pipelines
- Built-in test() compares ported predictions against scikit-learn using the target runtime
- Ships a porter CLI alongside the Python API
Weaknesses
- Last tagged release was 2019-01-20, although commits continue
- Requires Python 3.11+ and scikit-learn 1.8+, so models from older versions need retraining
- Some estimators lack the combined template; SVC and SGDClassifier lack predict_proba
- Docs list limitations for large Java methods, sparse data, Windows and some parameters
What it needs
- no GPU
- Docker
- Needs Python 3.11+, scikit-learn 1.8+, gcc, dotnet, go, javac/java, node, php or ruby (only for make() and test())
- Models: scikit-learn estimators and transformers
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #240 | visionhopeHierarchical vision backbone using self-referential nested learning, in PyTorch | 52 out of 100 |
| #241 | scikit-survivalSurvival analysis models for censored time-to-event data, built on scikit-learn | 52 out of 100 |
| #243 | xuanceDeep reinforcement learning library with single- and multi-agent algorithms | 52 out of 100 |
| #244 | scenicJAX/Flax library for training attention-based vision models at scale | 51 out of 100 |
| #245 | slm-labDeep reinforcement learning framework in PyTorch with JSON-spec experiments | 51 out of 100 |