一些具有机器学习功能的计算工具,python3.6+。
byted-magellan-ai的Python项目详细描述
magellan_ai说明
这是一个旨在提供Machine Learning和Deep Learning标准计算工具的Python项目,定期发布到pipy.org
。
目前提供以下模块:
magellan_ml
mag_util
metrics
: 提供了计算各种指标的工具方法,包括auc,ks,iv,psi等指标的计算。
mag_nlp
: 提供了NLP相关的各种工具方法,包括分词,实体识别等功能。mag_case
: 提供各种教程。
在线安装
建议使用官方镜像,安装最新版本。
pipinstallmagellan-ai-ihttps://pypi.Python.org/simple/
本地安装
如果要给该项目贡献代码,可以在本地调试好后测试,本地安装方法
$gitclonegit@code.byted.org:cfalg/magellan_ai.git$cdmagellan_ai$pythoninstall.
使用教程
以magllan_ai.mag_util.mag_metrics
模块为例,安装完成之后,可以使用以下方法导入使用
from magllan_ai.mag_util import mag_metrics
mag_metrics.show_func()
mag_metrics.cal_auc()
mag_metrics.cal_psi()
打包发布
$ cd /path/to/magellan_ml
$ python setup.py sdist bdist_wheel
$ pip install twine
$ twine upload dist/*
- 项目
标签: