From d1ef9c629c703396fee38a73368899fcdcb16f2c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 00:54:04 +0000 Subject: automatic import of python-m2cgen --- .gitignore | 1 + python-m2cgen.spec | 496 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 498 insertions(+) create mode 100644 python-m2cgen.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a7d6205 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/m2cgen-0.10.0.tar.gz diff --git a/python-m2cgen.spec b/python-m2cgen.spec new file mode 100644 index 0000000..7940d48 --- /dev/null +++ b/python-m2cgen.spec @@ -0,0 +1,496 @@ +%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** |