序数变量的温度计编码
thermoencoder的Python项目详细描述
热编码器
目录
安装
thermoencoder
git repo可用作PyPi package
pip install thermoencoder
用法
检查笔记本的examples文件夹。
X = [[0, 0], [1, 1], [3, 5]] # two ordinal features with 3 samples
from thermoencoder import ThermoEncoder
enc = ThermoEncoder()
Z = enc.fit_transform(X) # encode
X_back = enc.inverse_transform(Z) # decode
命令
- 检查语法:
flake8 --ignore=F401
- 运行单元测试:
python -W ignore -m unittest discover
- 删除
.pyc
文件:find . -type f -name "*.pyc" | xargs rm
- 删除
__pycache__
文件夹:find . -type d -name "__pycache__" | xargs rm -rf
- 上传到pypi:
python setup.py sdist upload -r pypi
- 用绳线上传到pypi:
python setup.py sdist && twine upload -r pypi dist/*
调试
- 分析python代码的笔记本位于profile文件夹中
支架
请open an issue支持。
贡献
请使用Github Flow投稿。创建分支、添加提交和open a pull request。