BayesianOptimization icon indicating copy to clipboard operation
BayesianOptimization copied to clipboard

Queue

Open alonfnt opened this issue 4 years ago • 9 comments

Browsing the code I've seen a custom implementation of Queue. Since there is a queue on the Standard Library, why not use it? it may be useful when doing threading? and there is less code to maintain.

If this is not the direction you want to take feel free to close this PR. I just did it because it seems like reinventing the wheel a bit.

alonfnt avatar Jul 07 '20 09:07 alonfnt

Codecov Report

Merging #239 into master will increase coverage by 0.20%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #239      +/-   ##
==========================================
+ Coverage   98.44%   98.64%   +0.20%     
==========================================
  Files           7        7              
  Lines         385      369      -16     
  Branches       39       39              
==========================================
- Hits          379      364      -15     
+ Misses          3        2       -1     
  Partials        3        3              
Impacted Files Coverage Δ
bayes_opt/bayesian_optimization.py 100.00% <100.00%> (+0.98%) :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 e32b1fb...59b976d. Read the comment docs.

codecov-commenter avatar Jul 07 '20 09:07 codecov-commenter

Of course there is 🤦 . When implementing it I didn't even think about it, but I agree, not re-inventing the wheel is definitely the way to go. If you don't mind fixing the conflict and squashing the commits into 1, max 2, commits, I would love to get this merged =)

fmfn avatar Jul 08 '20 19:07 fmfn

Ok, first time squashing and it seems I have squashed more that what I should. I will have to check how to fix it, my bad.

alonfnt avatar Jul 09 '20 08:07 alonfnt

Actually, the Files Changed section of the PR seems about right, but if I check the use queue from the standard library commit, it seems to be including some documentation and some other commits. I haven't been able to "fix" it, so maybe it is already ok (?). Please let me know what you think. :-)

alonfnt avatar Jul 29 '20 16:07 alonfnt

Codecov Report

Merging #239 (310e700) into master (ab8ca64) will increase coverage by 0.21%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #239      +/-   ##
==========================================
+ Coverage   98.44%   98.65%   +0.21%     
==========================================
  Files           7        7              
  Lines         385      372      -13     
  Branches       39       39              
==========================================
- Hits          379      367      -12     
+ Misses          3        2       -1     
  Partials        3        3              
Impacted Files Coverage Δ
bayes_opt/bayesian_optimization.py 100.00% <100.00%> (+0.98%) :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 ab8ca64...310e700. Read the comment docs.

codecov-io avatar Oct 25 '20 15:10 codecov-io

Fixed!

alonfnt avatar Mar 17 '21 21:03 alonfnt

Codecov Report

Merging #239 (8cc8d9b) into master (91441fe) will increase coverage by 0.81%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #239      +/-   ##
==========================================
+ Coverage   98.44%   99.26%   +0.81%     
==========================================
  Files           7        7              
  Lines         387      409      +22     
  Branches       39       58      +19     
==========================================
+ Hits          381      406      +25     
+ Misses          3        1       -2     
+ Partials        3        2       -1     
Impacted Files Coverage Δ
bayes_opt/bayesian_optimization.py 100.00% <100.00%> (+0.96%) :arrow_up:
bayes_opt/target_space.py 100.00% <0.00%> (ø)
bayes_opt/util.py 97.63% <0.00%> (+0.29%) :arrow_up:
bayes_opt/domain_reduction.py 100.00% <0.00%> (+4.08%) :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 91441fe...8cc8d9b. Read the comment docs.

codecov-commenter avatar Apr 14 '22 09:04 codecov-commenter

Hey @alonfnt, sorry about the slow response. Could I ask you to make any commit to this branch, which will trigger the (recently working again CI) to run?

bwheelz36 avatar Jul 29 '22 15:07 bwheelz36

@bwheelz36 done :)

alonfnt avatar Jul 31 '22 19:07 alonfnt

thank you!

bwheelz36 avatar Aug 15 '22 00:08 bwheelz36