Ruled based feature engineering for regression
Project description
symfeat is a rule based feature engineering library to be used as a preprocessor for regression tasks.
It is based on:
Mcconaghy, T. (2011). FFX: Fast, Scalable, Deterministic Symbolic Regression Technology. Genetic Programming Theory and Practice IX, 235-260. DOI: 10.1007/978-1-4614-1770-5_13
Features
Builds a features based on all valid rule specified combinations
Discards non-finite transformations
Remove equivalent based on expressions or numeric values
Installation
pip install symfeat
Usage
import numpy as np
import symfeat as sf
operators = {"sin": np.sin}
exponents = [1, 2, -1, -2]
x = np.random.normal(size=10).reshape(-1, 1)
sym = sf.SymbolicFeatures(exponents=exponents, operators=operators)
features = sym.fit_transform(x)
names = sym.names
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
symfeat-0.4.5.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file symfeat-0.4.5.tar.gz
.
File metadata
- Download URL: symfeat-0.4.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aecb7095399ff65d73bef18f60a7e73d81b5a77ab91accff5aa3f6f5f9058dca |
|
MD5 | aed4603bd4016f5f4f2b7ac9c94c7709 |
|
BLAKE2b-256 | b2533ea40d139b0d00c339f22e0688bd46f30d829e75854ccc76c5acd0435e8b |
File details
Details for the file symfeat-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: symfeat-0.4.5-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cefec13b265bd8b550e33e5b48aa3f6dbb3f6a096e9b6d2a13bf2abe29ba7f4 |
|
MD5 | b990c31037639cf92d64cd33f61eb07f |
|
BLAKE2b-256 | 98060a5d160d02eda757661a4158ab29334b0f5de6cc3dd37503cd9f80573649 |