Skip to main content

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.


Release files for feature-encoders 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for feature-encoders 0.2
File Size Uploaded
feature-encoders-0.2.tar.gz 43.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for feature-encoders 0.2
File Interpreter ABI Platform
feature_encoders-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 84.8 kB

Release files / feature-encoders-0.2.tar.gz

Download URL feature-encoders-0.2.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
62a52d547a98dd0691af5d3f3f27e799b57f80c1c3f18b35609829380742e454
BLAKE2b-256 checksum
How to use checksums
bbe6deb0028a93e68d5e9cc17f7ad78cf6cfdb92a4ae5d2b79c24da77da68e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / feature_encoders-0.2-py3-none-any.whl

Download URL feature_encoders-0.2-py3-none-any.whl
Size 41.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
750c5009800073690abe5c978e82edeb3c3a58c51d7f0027eb6ffd911932ffed
BLAKE2b-256 checksum
How to use checksums
d6b3ddb7ac13ef034719bc469d9f8fb9910e08ab02d68aaa8bd08cb9845bf441
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

1 release file

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