A python package to optimally encode a list
Project description
Installation
This is an easy to use library to encode categorical data in a feature into optimized set of features with each categorical value mapping to a unique bitstring.
Installation : pip install python-optiEncoder
>>> import optiEncoder
>>> enc = optiEncoder.Encoder(["France","Canada","England"])
>>> print("Mappings : ", enc.getMappings())
{'France':[0,0],'Canada':[0,1],'England':[1,0]}
>>> print("Encoded List : ", enc.getEncodedList())
[[0,0],[0,1],[1,0]]
License
MIT
Author
Sahil Ahuja
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.