aimclub / GOLEM

Graph Optimiser for Learning and Evolution of Models
https://thegolem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
60 stars 7 forks source link

Fix final choices saving in optimizers #227

Closed MorrisNein closed 11 months ago

MorrisNein commented 11 months ago

The change uses cycle break instead of early return in optimizer.

This allows to close the progress bar and to save the final choices to history.

codecov-commenter commented 11 months ago

Codecov Report

Merging #227 (8ba2a8a) into main (fcc23ec) will increase coverage by 0.01%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
+ Coverage   73.75%   73.76%   +0.01%     
==========================================
  Files         131      131              
  Lines        7834     7834              
==========================================
+ Hits         5778     5779       +1     
+ Misses       2056     2055       -1     
Files Coverage Δ
golem/core/optimisers/populational_optimizer.py 95.69% <100.00%> (ø)
golem/core/optimisers/meta/surrogate_optimizer.py 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes