Skip to content
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

Reinitialize if optimization fails #130

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Reinitialize if optimization fails #130

wants to merge 8 commits into from

Conversation

sethaxen
Copy link
Member

If for some reason we hit an edge case in the optimizer and an error is thrown, this PR causes Pathfinder to draw a new initialization point and rerun.

This PR makes a breaking changes: if an OptimizationProblem has been provided, its initialization point u0 must be mutable and may be overwritten. This avoids a deepcopy of the OptimizationProblem.

@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2023

Codecov Report

Patch coverage: 84.61% and project coverage change: -14.51 ⚠️

Comparison is base (7bc83fb) 92.65% compared to head (653cff8) 78.15%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #130       +/-   ##
===========================================
- Coverage   92.65%   78.15%   -14.51%     
===========================================
  Files          13       13               
  Lines         572      563        -9     
===========================================
- Hits          530      440       -90     
- Misses         42      123       +81     
Impacted Files Coverage Δ
src/singlepath.jl 83.95% <84.61%> (-4.69%) ⬇️
ext/DynamicHMCExt.jl 0.00% <0.00%> (-100.00%) ⬇️
src/integration/advancedhmc.jl 0.00% <0.00%> (-100.00%) ⬇️
ext/TuringExt.jl 0.00% <0.00%> (-96.16%) ⬇️
src/Pathfinder.jl 85.71% <0.00%> (-14.29%) ⬇️
src/inverse_hessian.jl 97.01% <0.00%> (-1.50%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

2 participants