AYX学习的阿尔法释放。
ayx-learn的Python项目详细描述
[![代码样式:黑色](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
#AYX学习
一个[SCIKIT学习](https://scikit-learn.org/stable/)兼容的数据科学工具(如变压器)的基础,建立了Altyx辅助建模和代码收费工具。
##源代码组织
` . ├── README.md ├── ayx_learn: Source code for the ayx_learn package. │ ├── cmd: CLI commands that enable transformers and other functions to be used directly from the command-line. │ ├── transformers: Transformer source code. │ └── utils: Utility functions, such as validation. ├── docs: Sphinx documentation. ├── examples: CLI examples that use ayx_learn/cmd and DVC. ├── notebooks: Jupyter notebooks. ├── requirements-dev.txt: Requirements for development env. ├── requirements.txt: Requirements for building and running in a production env. ├── setup.py ├── tests │ └── unit: pytest unit tests. └── tox.ini: Ini file for tox. `
##规范标准
ayx learn遵循[alteryx python代码标准](https://alteryx.quip.com/qR3kAG4OA32X/Python-Code-Standards)
##错误处理和日志记录
ayx learn中的错误/异常按照消息并引发和transformer模式,这些模式在[python异常日志记录](https://www.loggly.com/blog/exceptional-logging-of-exceptions-in-python/)的博客中有描述。
按照[为库配置日志记录](https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library)中的建议,已在ayx\u learn模块作用域初始化空处理程序。 ayx learn的客户机可以很容易地提供一个日志处理程序,通过在客户机中初始化一个处理程序来覆盖nullhandler。 例如
` import logging logging.basicConfig(filename='example.log',level=logging.DEBUG) `
##测试
单元测试使用[pytest](https://docs.pytest.org/)编写,位于/tests/unit中。
[tox](https://tox.readthedocs.io/)可用于创建virtualenv并自动运行pytest单元测试。
##示例
一组基于ayx_learn/cmd的cli示例,使用[dvc](https://dvc.org/)来管理数据、创建和运行管道。
用法
` cd examples/titanic dvc pull dvc repro step_2.csv.dvc `
清除数据文件
` dvc remove -o *.dvc `
##文档
ayx learn遵循[alteryx python文档标准](https://alteryx.quip.com/bFgiAZThHaJv/Python-Documentation-Standards)。
参见[自述](docs/readme.md)。