{"id":19278235,"url":"https://github.com/tslu1s/featransform","last_synced_at":"2025-04-22T00:31:44.227Z","repository":{"id":221255771,"uuid":"753311625","full_name":"TsLu1s/featransform","owner":"TsLu1s","description":"Featransform: Automated Feature Engineering for Machine Learning","archived":false,"fork":false,"pushed_at":"2024-10-24T18:34:57.000Z","size":889,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T22:01:06.329Z","etag":null,"topics":["anomaly-detection","automated-feature-engineering","automated-feature-selection","clustering-validation","data-science","feature-construction","feature-engineering","feature-optmizer","machine-learning","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TsLu1s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-05T21:46:09.000Z","updated_at":"2024-12-05T18:00:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4b7fe46-60a3-49ba-8bfe-d8e3fa628c47","html_url":"https://github.com/TsLu1s/featransform","commit_stats":null,"previous_names":["tslu1s/featransform"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsLu1s%2Ffeatransform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsLu1s%2Ffeatransform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsLu1s%2Ffeatransform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TsLu1s%2Ffeatransform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TsLu1s","download_url":"https://codeload.github.com/TsLu1s/featransform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250157823,"owners_count":21384331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anomaly-detection","automated-feature-engineering","automated-feature-selection","clustering-validation","data-science","feature-construction","feature-engineering","feature-optmizer","machine-learning","python"],"created_at":"2024-11-09T21:08:53.225Z","updated_at":"2025-04-22T00:31:43.750Z","avatar_url":"https://github.com/TsLu1s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![LinkedIn][linkedin-shield]][linkedin-url]\n[![Contributors][contributors-shield]][contributors-url]\n[![Stargazers][stars-shield]][stars-url]\n[![MIT License][license-shield]][license-url]\n[![Downloads][downloads-shield]][downloads-url]\n[![Month Downloads][downloads-month-shield]][downloads-month-url]\n\n[contributors-shield]: https://img.shields.io/github/contributors/TsLu1s/Featransform.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white\n[contributors-url]: https://github.com/TsLu1s/Featransform/graphs/contributors\n[stars-shield]: https://img.shields.io/github/stars/TsLu1s/Featransform.svg?style=for-the-badge\u0026logo=github\u0026logoColor=white\n[stars-url]: https://github.com/TsLu1s/Featransform/stargazers\n[license-shield]: https://img.shields.io/github/license/TsLu1s/Featransform.svg?style=for-the-badge\u0026logo=opensource\u0026logoColor=white\n[license-url]: https://github.com/TsLu1s/Featransform/blob/main/LICENSE\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/luísfssantos/\n[downloads-shield]: https://static.pepy.tech/personalized-badge/featransform?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=blue\u0026left_text=Total%20Downloads\n[downloads-url]: https://pepy.tech/project/featransform\n[downloads-month-shield]: https://static.pepy.tech/personalized-badge/featransform?period=month\u0026units=international_system\u0026left_color=grey\u0026right_color=blue\u0026left_text=Month%20Downloads\n[downloads-month-url]: https://pepy.tech/project/featransform\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n  \u003ch2 align=\"center\"\u003e Featransform: Automated Feature Engineering Framework for Supervised Machine Learning\n  \u003cbr\u003e\n  \n## Framework Contextualization \u003ca name = \"ta\"\u003e\u003c/a\u003e\n\nThe `Featransform` project constitutes an objective and integrated proposition to automate feature engineering 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. This package provides an ensemble of diverse applications of each specific approach, aggregating and generating them all as added engineered features based on the original input columns. \n\nIn 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.\n\nThe architecture design includes three main sections, these being: data preprocessing, diverse feature engineering ensembles and optimized feature selection validation.\n\nThis project aims at providing the following application capabilities:\n\n* 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.\n    \n* Improvement of predictive results: The application of the `Featransform` aims at improve the predictive performance of future applied Machine Learning models through added feature construction, increased pattern recognition and optimization of existing input features.\n\n* Continuous integration: After the train data is fitted, the created object can be saved and implemented in future data with the same structure. \n   \n#### Main Development Tools \u003ca name = \"pre1\"\u003e\u003c/a\u003e\n\nMajor frameworks used to built this project: \n\n* [Pandas](https://pandas.pydata.org/)\n* [Sklearn](https://scikit-learn.org/stable/)\n* [XGBoost](https://xgboost.readthedocs.io/en/stable/)\n* [Optuna](https://optuna.org/)\n    \n## Where to get it \u003ca name = \"ta\"\u003e\u003c/a\u003e\n    \nBinary installer for the latest released version is available at the Python Package Index [(PyPI)](https://pypi.org/project/featransform/).   \n\n## Installation  \n\nTo install this package from Pypi repository run the following command:\n\n```\npip install featransform\n```\n\n# Usage Example\n    \n## Featransform - Automated Feature Engineering Pipeline\n\nIn order to be able to apply the automated feature engineering `featransform` pipeline you need first to import the package. \nThe following needed step is to load a dataset and define your to be predicted target column name into the variable `target`.\nYou can customize the `fit_engineering` method by altering the following running pipeline parameters:\n* 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);\n* optimize_iters: Number of iterations generated for backwards feature selection optimization.\n* validation_split: Division ratio in which the feature engineering methods will be evaluated within the loaded Dataset (range: [0.05, 0.45]).\n\n\n\nRelevant Note:\n* Although functional, `Featransform` pipeline is not optimized for big data purposes yet.\n\n```py\n    \nimport pandas as pd\nfrom sklearn.model_selection import train_test_split\nfrom featransform.pipeline import (Featransform,\n                                   configurations)\nimport warnings\nwarnings.filterwarnings(\"ignore\", category=Warning) # -\u003e For a clean console\n    \ndata = pd.read_csv('csv_directory_path', encoding='latin', delimiter=',') # Dataframe Loading Example\n\ntrain,test = train_test_split(data, train_size=0.8)\ntrain,test = train.reset_index(drop=True), test.reset_index(drop=True) # -\u003e Required \n\n\n# Load and Customize Parameters\n\nconfigs = configurations()\nprint(configs)\n\nconfigs['Unsupervised']['Isolation_Forest']['n_estimators'] = 300\nconfigs['Clustering']['KMeans']['n_clusters'] = 3\nconfigs['DimensionalityReduction']['UMAP']['n_components'] = 6\n\n## Fit Data\n\nft = Featransform(configs = configs,        # validation_split:float, optimize_iters:int \n                  optimize_iters = 10,\n                  validation_split = 0.30) \n\nft.fit_engineering(X = train,              # X:pd.DataFrame, target:str=\"Target_Column\"\n                   target = \"Target_Column_Name\")\n\n## Transform Data \n\ntrain = ft.transform(X=train)\ntest = ft.transform(X=test)\n\n# Export Featransform Metadata\n\nimport pickle\noutput = open(\"ft_eng.pkl\", 'wb')\npickle.dump(ft, output)\n    \n```  \n\n#### Further Implementations\n\nFurther automated and customizable feature engineering ensemble methods applications can be checked here: [Featransform Examples](https://github.com/TsLu1s/Featransform/tree/main/examples)\n\n## License\n\nDistributed under the MIT License. See [LICENSE](https://github.com/TsLu1s/Featransform/blob/main/LICENSE) for more information.\n\n## Contact \n \n[Luis Santos - LinkedIn](https://www.linkedin.com/in/lu%C3%ADsfssantos/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftslu1s%2Ffeatransform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftslu1s%2Ffeatransform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftslu1s%2Ffeatransform/lists"}