Skip to content

Use the minimum with save_best in flux optimiser #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 18, 2021

Conversation

Vaibhavdixit02
Copy link
Member

Fixes #178

@codecov
Copy link

codecov bot commented Oct 18, 2021

Codecov Report

Merging #180 (1e6f030) into master (1767144) will increase coverage by 0.09%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #180      +/-   ##
==========================================
+ Coverage   75.73%   75.82%   +0.09%     
==========================================
  Files          31       31              
  Lines        1059     1063       +4     
==========================================
+ Hits          802      806       +4     
  Misses        257      257              
Impacted Files Coverage Δ
src/solve/flux.jl 92.10% <83.33%> (+0.92%) ⬆️

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 1767144...1e6f030. Read the comment docs.

@@ -53,10 +54,13 @@ function __solve(prob::OptimizationProblem, opt::AbstractFluxOptimiser, data = D
if first(x) < first(min_err) #found a better solution
min_opt = opt
min_err = x
min_θ = θ
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to copy, otherwise it gets mutated.

Co-authored-by: Christopher Rackauckas <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 35bf7e6 into master Oct 18, 2021
@ChrisRackauckas ChrisRackauckas deleted the Vaibhavdixit02-patch-1 branch October 18, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Returning minimizing parameters for Flux optimizers when maxiters is reached
2 participants