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:
-
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.
-
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.
-
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.
-
Composing features for linear regression.
feature-encodersincludes aModelStructureclass for aggregating feature generators and encoders into main effect and pairwise interaction terms for linear regression models. AModelStructureinstance 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feature-encoders-0.2.tar.gz.
File metadata
- Download URL: feature-encoders-0.2.tar.gz
- Upload date:
- Size: 43.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62a52d547a98dd0691af5d3f3f27e799b57f80c1c3f18b35609829380742e454
|
|
| MD5 |
5180df2a9e35dfbdae48204e560fe129
|
|
| BLAKE2b-256 |
bbe6deb0028a93e68d5e9cc17f7ad78cf6cfdb92a4ae5d2b79c24da77da68e2b
|
File details
Details for the file feature_encoders-0.2-py3-none-any.whl.
File metadata
- Download URL: feature_encoders-0.2-py3-none-any.whl
- Upload date:
- Size: 41.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
750c5009800073690abe5c978e82edeb3c3a58c51d7f0027eb6ffd911932ffed
|
|
| MD5 |
6afed36da2de2735c2c96906d6af8e5a
|
|
| BLAKE2b-256 |
d6b3ddb7ac13ef034719bc469d9f8fb9910e08ab02d68aaa8bd08cb9845bf441
|