Dedicated libraries
In recent years, several genetic-algorithm-based libraries have been developed that are dedicated to optimizing machine learning model development. One of them is sklearn-genetic-opt
(https://sklearn-genetic-opt.readthedocs.io/en/stable/index.html); it supports both hyperparameters tuning and feature selection. Another more elaborate library is TPOT
(https://epistasislab.github.io/tpot/); this library provides optimization for the end-to-end machine learning development process, also called the pipeline. You are encouraged to try out these libraries in your own projects.