Skip to main content

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)

Source distribution for catencfamily 0.1.19
File Size Uploaded
catencfamily-0.1.19.tar.gz 42.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for catencfamily 0.1.19
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.19 This release

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.99

2 release files

0.0.98

2 release files

0.0.97

2 release files

0.0.96

2 release files

0.0.93

2 release files

0.0.92

2 release files

0.0.91

2 release files

0.0.90

2 release files

0.0.89

2 release files

0.0.88

2 release files

0.0.68

2 release files

0.0.67

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page