Skip to main content

A library for encoding features and their pairwise interactions.

Project description

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

feature_encoders-0.1-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: feature_encoders-0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.9 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-py3-none-any.whl
Algorithm Hash digest
SHA256 cacfd9fc7292fc53e5afc76ac8cf098f6d82023edd3c09feb0ef89f8c53812e0
MD5 d998b8236622f1adaebc9db38adaa946
BLAKE2b-256 ce427996935c3ea664a2ec6e68b2c1bb0544bd35db0fd79cffc1db6a5f0b16be

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