rodrigo-arenas / Sklearn-genetic-opt

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

Multi-metric evaluation #85

Closed rodrigo-arenas closed 2 years ago

rodrigo-arenas commented 2 years ago

This PR implements multi-metric evaluation for both GASearchCV and GAFeatureSelectionCV.

You will see this reflected on the logbook and cv_results_ objects, where now you get results for each metric. As in scikit-learn, if multi-metric is used, the refit parameter must be a string specifying the metric to evaluate the cv-scores. See more in the GASearchCV and GAFeatureSelectionCV API documentation.

This implements the required feature in issue #63

codecov[bot] commented 2 years ago

Codecov Report

Merging #85 (a0c1791) into master (2e14621) will increase coverage by 0.11%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   99.78%   99.89%   +0.11%     
==========================================
  Files          19       19              
  Lines         922      953      +31     
==========================================
+ Hits          920      952      +32     
+ Misses          2        1       -1     
Impacted Files Coverage Δ
sklearn_genetic/genetic_search.py 99.73% <100.00%> (+0.02%) :arrow_up:
sklearn_genetic/plots.py 100.00% <100.00%> (ø)
sklearn_genetic/utils/cv_scores.py 100.00% <100.00%> (ø)
sklearn_genetic/algorithms.py 100.00% <0.00%> (+0.66%) :arrow_up:

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 2e14621...a0c1791. Read the comment docs.