#242242nd of 433 in ML frameworks and libraries

sklearn-porter

Transpiles trained scikit-learn models to C, Java, JavaScript, Go and more

Stars
1.3k
License
BSD-3-Clause
Last commit
Nov 2026
Last release
Jan 2019
Language
Python
Stars, last 29 weeks+4
6 May 2026: 1,299 stars13 May 2026: 1,300 stars20 May 2026: 1,300 stars27 May 2026: 1,300 stars3 Jun 2026: 1,301 stars10 Jun 2026: 1,301 stars17 Jun 2026: 1,301 stars24 Jun 2026: 1,301 stars1 Jul 2026: 1,301 stars8 Jul 2026: 1,301 stars15 Jul 2026: 1,301 stars22 Jul 2026: 1,301 stars29 Jul 2026: 1,301 stars5 Aug 2026: 1,301 stars12 Aug 2026: 1,301 stars19 Aug 2026: 1,301 stars26 Aug 2026: 1,301 stars2 Sept 2026: 1,301 stars9 Sept 2026: 1,301 stars16 Sept 2026: 1,302 stars23 Sept 2026: 1,302 stars30 Sept 2026: 1,302 stars7 Oct 2026: 1,302 stars14 Oct 2026: 1,302 stars21 Oct 2026: 1,302 stars28 Oct 2026: 1,302 stars4 Nov 2026: 1,303 stars11 Nov 2026: 1,303 stars18 Nov 2026: 1,303 stars25 Nov 2026: 1,303 stars

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
Also in ML frameworks and libraries
RankProjectScore
#240visionhopeHierarchical vision backbone using self-referential nested learning, in PyTorch1.4k stars+114 (+9.0%) in 30 daysMIT52 out of 100
#241scikit-survivalSurvival analysis models for censored time-to-event data, built on scikit-learn1.3k starsGPL-3.052 out of 100
#243xuanceDeep reinforcement learning library with single- and multi-agent algorithms1.1k starsMIT52 out of 100
#244scenicJAX/Flax library for training attention-based vision models at scale Live demo ↗ (opens in a new tab)3.8k starsApache-2.051 out of 100
#245slm-labDeep reinforcement learning framework in PyTorch with JSON-spec experiments1.4k starsMIT51 out of 100