sklearn2gem将pickle'd scikit学习模型转换为rubygem
sklearn2gem的Python项目详细描述
#sklearn2gem
[![生成状态](https://travis-ci.org/stewartpark/sklearn2gem.svg?branch=master)](https://travis-ci.org/stewartpark/sklearn2gem) [![需求状态](https://requires.io/github/stewartpark/sklearn2gem/requirements.svg?branch=master)](https://requires.io/github/stewartpark/sklearn2gem/requirements/?分支=主) [![pypi版本](https://badge.fury.io/py/sklearn2gem.svg)](https://badge.fury.io/py/sklearn2gem)
sklearn2gem将scikit学习模型移植到快速ruby c绑定中!
#入门
使用pip安装sklearn2gem
` pip install sklearn2gem `
或通过简易安装:
` easy_install sklearn2gem `
之后,使用sklearn.externals.joblib转储scikit学习模型,并运行sklearn2gem model\u name@version your\model.pkl foo/bar/model\u name。您应该可以在foo/bar/下看到一个名为model\name的新创建的文件夹。
请参见[examples/iris.py](https://github.com/stewartpark/sklearn2gem/blob/master/examples/iris.py)来尝试它。
要生成预编译的二进制gem,请使用[gem编译器](https://github.com/luislavena/gem-compiler)。
#支持哪些机器学习算法?
由于sklearn2gem使用nok/sklearn-porter将模型转换为c文件,因此可以参考[本页](https://github.com/nok/sklearn-porter#machine-learning-algorithms)。