项目作者: kmedian

项目描述 :
thermometer encoding with sklearn interface
高级语言: Python
项目地址: git://github.com/kmedian/thermoencoder.git
创建时间: 2019-07-26T05:16:13Z
项目社区:https://github.com/kmedian/thermoencoder

开源协议:MIT License

下载


Build Status
Binder

thermoencoder

Table of Contents

Installation

The thermoencoder git repo is available as PyPi package

  1. pip install thermoencoder

Usage

Check the examples folder for notebooks.

  1. X = [[0, 0], [1, 1], [3, 5]] # two ordinal features with 3 samples
  2. from thermoencoder import ThermoEncoder
  3. enc = ThermoEncoder()
  4. Z = enc.fit_transform(X) # encode
  5. X_back = enc.inverse_transform(Z) # decode

Commands

  • Check syntax: flake8 --ignore=F401
  • Run Unit Tests: python -W ignore -m unittest discover
  • Remove .pyc files: find . -type f -name "*.pyc" | xargs rm
  • Remove __pycache__ folders: find . -type d -name "__pycache__" | xargs rm -rf
  • Upload to PyPi: python setup.py sdist upload -r pypi
  • Upload to PyPi with twine: python setup.py sdist && twine upload -r pypi dist/*

Debugging

  • Notebooks to profile python code are in the profile folder

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.