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

Fix uniform random sampling #69

Closed rodrigo-arenas closed 2 years ago

rodrigo-arenas commented 2 years ago

This PR fixes a bad parameters sampling when using Continuous with distribution='uniform' (default), this bug was making the sample value not o respect the upper boundary as described in issue #68

codecov[bot] commented 2 years ago

Codecov Report

Merging #69 (180d7c2) into master (a8a706d) will not change coverage. The diff coverage is 100.00%.

:exclamation: Current head 180d7c2 differs from pull request most recent head 8b6ac26. Consider uploading reports for the commit 8b6ac26 to get more accurate results Impacted file tree graph

@@            Coverage Diff            @@
##            master       #69   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          725       727    +2     
=========================================
+ Hits           725       727    +2     
Impacted Files Coverage Δ
sklearn_genetic/space/space.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 a8a706d...8b6ac26. Read the comment docs.