Skip to main content

Thermometer Encoding for ordinal variables

Project description

Build Status Binder

thermoencoder

Table of Contents

Installation

The thermoencoder git repo is available as PyPi package

pip install thermoencoder

Usage

Check the 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 folder

Support

Please open an issue for support.

Contributing

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thermoencoder-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file thermoencoder-0.1.2.tar.gz.

File metadata

  • Download URL: thermoencoder-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for thermoencoder-0.1.2.tar.gz
Algorithm Hash digest
SHA256 05bf0805205c8e5a2071652229cb14b2defd929bb9331c0fef84cd67e59274b0
MD5 5ca639cdc375070c0f5aaa81ae27ff94
BLAKE2b-256 f528eba37dd717d5838a605821a6b037ebd71c58737a67e6df60909c7a2c1c31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page