Featransform is an automated feature engineering framework for supervised machine learning
Project description
Featransform: Automated Feature Engineering Framework for Supervised Machine Learning
Framework Contextualization
The Featransform project constitutes an objective and modern proposition to automate feature engineering framework through the integration of various approachs of input pattern recognition known in Machine Learning such as dimensionality reduction, anomaly detection, clustering approaches and datetime feature constrution. Built with advanced design patterns and a modular architecture, it seamlessly orchestrates multiple feature engineering techniques including anomaly detection, clustering, dimensionality reduction, and temporal feature extraction—all optimized through intelligent validation-driven feature selection.
In order to avoid generation of noisy data for predictive consumption, after the engineered features ensemble are concatenated with the original features, a backwards wrapper feature selection also known as backward elimination is implemented to iteratively remove features based on evaluation of relevance, maintaining only valuable columns available for future models performance improvement purposes.
The architecture design includes three main sections, these being: data preprocessing, diverse feature engineering ensembles and optimized feature selection validation.
This project aims at providing the following application capabilities:
-
General applicability on tabular datasets: The developed feature engineering procedures are applicable on any data table associated with any Supervised ML scopes, based on input data columns to be built up on.
-
Improvement of predictive results: The application of the
Featransformaims at improve the predictive performance of future applied Machine Learning models through added feature construction, increased pattern recognition and optimization of existing input features. -
Continuous integration: After the train data is fitted, the created object can be saved and implemented in future data with the same structure.
Main Development Tools
Major frameworks used to built this project:
Where to get it
Binary installer for the latest released version is available at the Python Package Index (PyPI).
GitHub Project Link: https://github.com/TsLu1s/Featransform
Installation
To install this package from Pypi repository run the following command:
pip install featransform
Usage Example
Featransform - Automated Feature Engineering Pipeline
In order to be able to apply the automated feature engineering featransform pipeline you need first to import the package.
The following needed step is to load a dataset and define your to be predicted target column name into the variable target.
You can customize the fit_engineering method by altering the following running pipeline parameters:
- configs: Nested dictionary in which are contained all methods specific parameters configurations. Feel free to customize each method as you see fit (customization example shown bellow);
- optimize_iters: Number of iterations generated for backwards feature selection optimization.
- validation_split: Division ratio in which the feature engineering methods will be evaluated within the loaded Dataset (range: [0.05, 0.45]).
import pandas as pd
from sklearn.model_selection import train_test_split
from featransform.pipeline import (Featransform,
configurations)
import warnings
warnings.filterwarnings("ignore", category=Warning) # -> For a clean console
data = pd.read_csv('csv_directory_path') # Dataframe Loading Example
train,test = train_test_split(data, train_size=0.8)
train,test = train.reset_index(drop=True), test.reset_index(drop=True) # -> Required
# Load and Customize Parameters
configs = configurations()
print(configs)
configs['Unsupervised']['Isolation_Forest']['n_estimators'] = 300
configs['Clustering']['KMeans']['n_clusters'] = 3
configs['DimensionalityReduction']['TruncatedSVDStrategy']['n_components'] = 5
## Fit Data
ft = Featransform(configs = configs, # validation_split:float, optimize_iters:int
optimize_iters = 10,
validation_split = 0.30)
ft.fit_engineering(X = train, # X:pd.DataFrame, target:str="Target_Column"
target = "Target_Column_Name")
## Transform Data
train = ft.transform(X=train)
test = ft.transform(X=test)
# Export Featransform Metadata
import pickle
output = open("ft_eng.pkl", 'wb')
pickle.dump(ft, output)
Usage Examples
Further automated and customizable feature engineering applications:
- Baseline Example - Get started with intuitive preset configurations, synthetic dataset generation, and clear pipeline serialization for production deployment
- Advanced Configuration - Build fully customized pipelines from scratch with complete control over preprocessing strategies, feature engineering components, and optimization parameters
- Component Testing - Deeper dive into individual components with comprehensive train-test evaluation across encoding, imputation, anomaly detection, clustering, and dimensionality reduction methods
Prefer interactive notebooks? Check out the notebook examples with step-by-step execution.
Core Capabilities
Feature Engineering Methods:
- Anomaly Detection (Isolation Forest, LOF, One-Class SVM, Elliptic Envelope)
- Clustering (KMeans, Birch, DBSCAN, Gaussian Mixture)
- Dimensionality Reduction (PCA, SVD, FastICA)
- Temporal Features (Cyclic encoding, datetime decomposition)
Intelligent Processing:
- Advanced Imputation (Mean, Median, Iterative, KNN)
- Categorical Encoding (Label)
- Automated Feature Selection (Importance-based)
Built With
Major frameworks used to build this project:
@software{featransform2023,
author = {Luis Fernando Santos},
title = {Featransform: Automated Feature Engineering Framework for Supervised Machine Learning},
year = {2023},
publisher = {PyPI},
url = {https://pypi.org/project/segmentae/}
}
License
Distributed under the MIT License. See LICENSE for more information.
Contact
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 Distributions
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 featransform-1.6.60-py3-none-any.whl.
File metadata
- Download URL: featransform-1.6.60-py3-none-any.whl
- Upload date:
- Size: 38.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0960b3c0a42fedc3ff90b4ed76c954e2342f0691dabecdd8ab1622e33f76d735
|
|
| MD5 |
27b936cd79670eea74744534534b9a7c
|
|
| BLAKE2b-256 |
1673cee212bc3212ad4686ebc16dcca4506b448d6ade3b41b1b63b45b5c4538b
|