Skip to main content

A library for encoding features and their pairwise interactions.

Project description

PyPI version

Feature Encoders

Functionality

feature-encoders is a library for encoding categorical and numerical features to create features for linear regression models. In particular, it includes functionality for:

  1. Applying custom feature generators to a dataset. Users can add a feature generator to the existing ones by declaring a class for the validation of their inputs and a class for their creation.

  2. Encoding categorical and numerical features. The categorical encoder provides the option to reduce the cardinality of a categorical feature by lumping together categories for which the corresponding distibution of the target values is similar.

  3. Encoding interactions. Interactions are always pairwise and always between encoders (and not features). The supported interactions are between: (a) categorical and categorical encoders, (b) categorical and linear encoders, (c) categorical and spline encoders, (d) linear and linear encoders, and (e) spline and spline encoders.

  4. Composing features for linear regression. feature-encoders includes a ModelStructure class for aggregating feature generators and encoders into main effect and pairwise interaction terms for linear regression models. A ModelStructure instance can get information about additional features and encoders either from YAML files or through its API.

How to use feature-encoders

Please see our API documentation for a complete list of available functions and see our informative tutorials for more comprehensive example use cases.

Python Version

feature-encoders supports Python 3.7+.

License

Copyright 2021 Hebes Intelligence. Released under the terms of the Apache License, Version 2.0.


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

feature-encoders-0.1.1.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

feature_encoders-0.1.1-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file feature-encoders-0.1.1.tar.gz.

File metadata

  • Download URL: feature-encoders-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.0

File hashes

Hashes for feature-encoders-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da197a4ce1f1b39ceb3e31bf9f9984a924d1293b1c19cf21c3aa15a039475abd
MD5 d5a21fb795a7fd29fd1be55d652dff3e
BLAKE2b-256 e03783167cbd9600bc509541ba93b655ed2c06414c455d843d5967ff9915eefb

See more details on using hashes here.

File details

Details for the file feature_encoders-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: feature_encoders-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.0

File hashes

Hashes for feature_encoders-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f289e716e7696ed0211a622110f9ea25a04229fce7e8d397ba8c3057ee72fb16
MD5 32eb3ce5c3ef3dfdc585f6a4d97a0347
BLAKE2b-256 ee09565bd3df8a99fe16831d5fbecdd454d7d411aa7fec7084472c920cf70c09

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