https://github.com/kmedian/thermoencoder
thermometer encoding with sklearn interface
https://github.com/kmedian/thermoencoder
feature-engineering ordinal ordinal-encoder ordinal-features pypi sklearn sklearn-compatible thermometer-encoding
Last synced: about 1 month ago
JSON representation
thermometer encoding with sklearn interface
- Host: GitHub
- URL: https://github.com/kmedian/thermoencoder
- Owner: kmedian
- License: mit
- Created: 2019-07-26T05:16:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T15:15:14.000Z (about 1 year ago)
- Last Synced: 2025-03-17T09:07:51.831Z (2 months ago)
- Topics: feature-engineering, ordinal, ordinal-encoder, ordinal-features, pypi, sklearn, sklearn-compatible, thermometer-encoding
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/kmedian/thermoencoder)
[](https://mybinder.org/v2/gh/kmedian/thermoencoder/master?urlpath=lab)# thermoencoder
## Table of Contents
* [Installation](#installation)
* [Usage](#usage)
* [Commands](#commands)
* [Support](#support)
* [Contributing](#contributing)## Installation
The `thermoencoder` [git repo](http://github.com/kmedian/thermoencoder) is available as [PyPi package](https://pypi.org/project/thermoencoder)```
pip install thermoencoder
```## Usage
Check the [examples](http://github.com/kmedian/thermoencoder/examples) folder for notebooks.```
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
```## 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](profile) folder## Support
Please [open an issue](https://github.com/kmedian/thermoencoder/issues/new) for support.## Contributing
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/kmedian/thermoencoder/compare/).