m2cgen icon indicating copy to clipboard operation
m2cgen copied to clipboard

Transform ML models into a native code (Java, C, Python, Go, JavaScript, Visual Basic, C#, R, PowerShell, PHP, Dart, Haskell, Ruby, F#, Rust) with zero dependencies

Results 66 m2cgen issues
Sort by recently updated
recently updated
newest added

Hi. I was trying to conver my model to c#. But Neither does work. Do you have the right function in this case `code = m2c.export_to_c#(xgb)` and `code = m2c.export_to_csharp(xgb)`

Bumps [scipy](https://github.com/scipy/scipy) from 1.8.1 to 1.9.0. Release notes Sourced from scipy's releases. SciPy 1.9.0 Release Notes SciPy 1.9.0 is the culmination of 6 months of hard work. It contains many...

dependencies

Bumps [flake8](https://github.com/pycqa/flake8) from 5.0.3 to 5.0.4. Commits 6027577 Release 5.0.4 213e006 Merge pull request #1653 from asottile/lower-bound-importlib-metadata e94ee2b require sufficiently new importlib-metadata 318a86a Merge pull request #1646 from televi/main 7b8b374...

dependencies

When we use categorical features in LGBM models ( https://lightgbm.readthedocs.io/en/latest/Advanced-Topics.html#categorical-feature-support ) m2cgen can no longer export it. An example that runs in google colab: ```python !pip install m2cgen from lightgbm...

This is a suggestion on how to tackle a problem mentioned at https://github.com/BayesWitnesses/m2cgen/issues/298 . In my case, I had about 1000 estimators and this fix worked quite well in production....

Hi. I am converting the tree model to C using m2cgen. Although the inference latencies are much lower, the accuracies are way off. Here's how I am converting and reading...

Bumps [scikit-learn](https://github.com/scikit-learn/scikit-learn) from 1.0.2 to 1.1.0. Release notes Sourced from scikit-learn's releases. scikit-learn 1.1.0 We're happy to announce the 1.1.0 release. You can read the release highlights under https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_1_1_0.html and...

dependencies

Hello, first of thank you so much for such an amazing package. I have built a thin wrapper around this package that turns the generated VBA code to SAS supporting...

We're training our LightGBM model outside of python (spark) so we need to load it from a model file before passing it to m2c. I don't believe LightGBM can load...

help wanted