Skip to main content

Thermometer Encoding for ordinal variables

Project description

Build Status Binder

thermoencoder

DELETE THIS LATER

Download thermoencoder and rename it

git clone git@github.com:kmedian/thermoencoder.git mycoolpkg
cd mycoolpkg
bash rename.sh "kmedian" "mycoolpkg" "Real Name"

The git repo is reinitialized without an remote url. Therefore

git remote add origin git@github.com:kmedian/mycoolpkg.git

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.0.tar.gz (6.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: thermoencoder-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

File hashes

Hashes for thermoencoder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52ab0cdb59fbf872c7b8cd545b035c47793fc30d845b41f91e455ae7b69db26b
MD5 db2860ed1257c3ed236073f743e5f4ab
BLAKE2b-256 fc706f955d772cb8819682041757e4597254fd3970470ca5e2f97299a90f9b7c

See more details on using hashes here.

Supported by

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