← all repositories

BayesWitnesses/m2cgen

Model-to-code generator that transpiles trained ML models into native code in Java, C, Python, Go, JavaScript, and other languages.

m2cgen
Not currently ranked — collecting fresh signals.
star history

m2cgen (Model 2 Code Generator) converts trained statistical and machine-learning models into standalone native code implementations with zero external dependencies. It supports exporting models from scikit-learn, LightGBM, XGBoost, and other ML libraries into 15+ target languages including C, Java, Go, Rust, and JavaScript. This enables deploying ML models in environments where Python or ML runtimes are unavailable.

Frequently asked

What is BayesWitnesses/m2cgen?
Model-to-code generator that transpiles trained ML models into native code in Java, C, Python, Go, JavaScript, and other languages.
Is m2cgen open source?
Yes — BayesWitnesses/m2cgen is open source, released under the MIT license.
What language is m2cgen written in?
BayesWitnesses/m2cgen is primarily written in Python.
How popular is m2cgen?
BayesWitnesses/m2cgen has 3k stars on GitHub.
Where can I find m2cgen?
BayesWitnesses/m2cgen is on GitHub at https://github.com/BayesWitnesses/m2cgen.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.