%global _empty_manifest_terminate_build 0 Name: python-m2cgen Version: 0.10.0 Release: 1 Summary: Code-generation for various ML models into native code. License: MIT URL: https://github.com/BayesWitnesses/m2cgen Source0: https://mirrors.nju.edu.cn/pypi/web/packages/72/92/eb4176f0e71bcd988a9df54e7103987a232082e5b6ef14a12d56b1c3bddf/m2cgen-0.10.0.tar.gz BuildArch: noarch Requires: python3-numpy %description # m2cgen [![GitHub Actions Status](https://github.com/BayesWitnesses/m2cgen/workflows/GitHub%20Actions/badge.svg?branch=master)](https://github.com/BayesWitnesses/m2cgen/actions) [![Coverage Status](https://codecov.io/gh/BayesWitnesses/m2cgen/branch/master/graph/badge.svg)](https://codecov.io/gh/BayesWitnesses/m2cgen) [![License: MIT](https://img.shields.io/github/license/BayesWitnesses/m2cgen.svg)](https://github.com/BayesWitnesses/m2cgen/blob/master/LICENSE) [![Python Versions](https://img.shields.io/pypi/pyversions/m2cgen.svg?logo=python&logoColor=white)](https://pypi.org/project/m2cgen) [![PyPI Version](https://img.shields.io/pypi/v/m2cgen.svg?logo=pypi&logoColor=white)](https://pypi.org/project/m2cgen) [![Downloads](https://pepy.tech/badge/m2cgen)](https://pepy.tech/project/m2cgen) **m2cgen** (Model 2 Code Generator) - is a lightweight library which provides an easy way to transpile trained statistical models into a native code (Python, C, Java, Go, JavaScript, Visual Basic, C#, PowerShell, R, PHP, Dart, Haskell, Ruby, F#, Rust, Elixir). * [Installation](#installation) * [Supported Languages](#supported-languages) * [Supported Models](#supported-models) * [Classification Output](#classification-output) * [Usage](#usage) * [CLI](#cli) * [FAQ](#faq) ## Installation Supported Python version is >= **3.7**. ``` pip install m2cgen ``` ## Supported Languages - C - C# - Dart - F# - Go - Haskell - Java - JavaScript - PHP - PowerShell - Python - R - Ruby - Rust - Visual Basic (VBA-compatible) - Elixir ## Supported Models | | Classification | Regression | | --- | --- | --- | | **Linear** | | | | **SVM** | | | | **Tree** | | | | **Random Forest** | | | | **Boosting** |