rodrigo-arenas / Sklearn-genetic-opt

ML hyperparameters tuning and features selection, using evolutionary algorithms.
https://sklearn-genetic-opt.readthedocs.io
MIT License
286 stars 73 forks source link

GAFeatureSelectionCV as a scikit-learn FeatureSelection algorithm #124

Closed rodrigo-arenas closed 1 year ago

rodrigo-arenas commented 1 year ago

This PR addresses the issue mentioned in #110 by updating the GAFeatureSelectionCV , now it inherits its methods from MetaEstimatorMixin, SelectorMixin, and BaseEstimator instead of BaseSearchCV, this allows to use the selected features out of the box without the necessity of explicitly selecting them like in the previous API (i.e X[:, features])

codecov[bot] commented 1 year ago

Codecov Report

Merging #124 (0f0d86f) into master (a324df8) will increase coverage by 0.22%. The diff coverage is 97.43%.

@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
+ Coverage   98.25%   98.48%   +0.22%     
==========================================
  Files          25       25              
  Lines        1034     1056      +22     
==========================================
+ Hits         1016     1040      +24     
+ Misses         18       16       -2     
Impacted Files Coverage Δ
sklearn_genetic/schedules/base.py 100.00% <ø> (+9.09%) :arrow_up:
sklearn_genetic/genetic_search.py 98.74% <97.36%> (-0.20%) :arrow_down:
sklearn_genetic/algorithms.py 94.67% <100.00%> (+0.03%) :arrow_up:
sklearn_genetic/utils/tools.py 100.00% <0.00%> (+10.00%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more