catencfamily
The module provides a way to encode categorical features in multiple but related ways using network analysis. Together, the family of multiple encodings serve as a numerical vector for every level of a categorical feature. The class transforms a group of categorical features into corresponding numerical features which can then be used either in unsupervised learning or in predictive analytics. To assist in unsupervised learning, it has methods to save a categorical feature as network graphs and plot them. The class has methods to extract unit vectors for every level of a categorical feature to help, for example, in understanding relationshsips between various levels. Extracted numerical vectors can directly be used in plotting, for example, in tensorflow's Embedding Projector. Class provides methods to get categories encoded for large datasets; one can, for example, take a sample of data at a time, have categories encoded, then take another sample and have categories similarly encoded. After a number of iterations, take either a mean or median to get final category-wise vectors. As the encodings are calculated using a group of network analysis operations, the family of encodings is extensible. The class provides one way, but a limited one to extend it.
Installation
pip install catencfamily
Requirements
python >= 3.7
pandas
numpy
networkx
cdlib
scikit-learn
matplotlib
pathlib
License
_MIT License. Any contribution is welcome!
Release files for catencfamily 0.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| catencfamily-0.1.19.tar.gz | 42.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| catencfamily-0.1.19-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.3 kB
Release files / catencfamily-0.1.19.tar.gz
| Download URL | catencfamily-0.1.19.tar.gz |
|---|---|
| Size | 42.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a1232a52d1690bf2b034642138bc76bacf9ddf4c5f98a29c1d38d33b3edd84d
|
|
BLAKE2b-256 checksum How to use checksums |
7500a6d862d090b32b6cb195df7ab01d76c701c8b53830c863988346c0857798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / catencfamily-0.1.19-py3-none-any.whl
| Download URL | catencfamily-0.1.19-py3-none-any.whl |
|---|---|
| Size | 44.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fbc385496086bf01710d27bf014bacbcf2a804c83e4d6d8ca4b441b30434295
|
|
BLAKE2b-256 checksum How to use checksums |
bbecfa0d3bb769f4933f1b28fae2cbb51b25f95a7ca3c6346411474eb4eb76b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|