Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Follow publication

Evolutionary Feature Selection for Machine Learning

5 min readDec 16, 2021

--

Provinz Pichincha, Ecuador. Photo by Alexander Schimmeck on Unsplash.

1. Model Representation:

Features selection representation. Image by the author.
Random mutation. Image by the author.

2. Python Code:

Data setup. Code by the author.
Data distribution. Image by the author.
Data split and base model. Code by the author.
pip install sklearn-genetic-opt
Feature selection mode. Code by the author.
Training log. Image by the author.
evolved_estimator.best_features_[False True True True False False False False False]

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Rodrigo Arenas
Rodrigo Arenas

Written by Rodrigo Arenas

Data Scientist and open-source contributor working on machine learning, and optimization; for all my projects, check: https://rodrigo-arenas.github.io/portfolio

No responses yet