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] Param_grid with length one #66

Closed rodrigo-arenas closed 3 years ago

rodrigo-arenas commented 3 years ago

This PR handles the scenario when a single parameter is provided in the param_grid, it warns the user to use at least two parameters but the algorithm won't raise an error.

codecov[bot] commented 3 years ago

Codecov Report

Merging #66 (e9dfb5c) into master (eb46c17) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #66   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          719       726    +7     
=========================================
+ Hits           719       726    +7     
Impacted Files Coverage Δ
sklearn_genetic/callbacks/base.py 100.00% <ø> (ø)
sklearn_genetic/_version.py 100.00% <100.00%> (ø)
sklearn_genetic/callbacks/early_stoppers.py 100.00% <100.00%> (ø)
sklearn_genetic/genetic_search.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 eb46c17...e9dfb5c. Read the comment docs.