rodrigo-arenas / Sklearn-genetic-opt

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

[PR] Enable BaseSearchCV #55

Closed rodrigo-arenas closed 3 years ago

rodrigo-arenas commented 3 years ago

This PR implement the missing properties of scikit-learn BaseSearchCV, the parameter return_train_score was added in GASearchCV, the following properties now are calculated as in scikit-learn:

This introduces some changes:

Tests and documentation is added

codecov[bot] commented 3 years ago

Codecov Report

Merging #55 (c94b103) into master (65611cb) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #55   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        19    +1     
  Lines          669       720   +51     
=========================================
+ Hits           669       720   +51     
Impacted Files Coverage Δ
sklearn_genetic/genetic_search.py 100.00% <100.00%> (ø)
sklearn_genetic/utils/cv_scores.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 65611cb...c94b103. Read the comment docs.