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

Use Optim.jl directly for Optim solvers #129

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

Use Optim.jl directly for Optim solvers #129

wants to merge 10 commits into from

Conversation

sethaxen
Copy link
Member

With LogDensityProblems, we have the ability to simultaneously compute the log density, its gradient, and even its Hessian. Optim.jl supports this kind of interface that shares work; however, Optimization.jl does not.

This PR changes the internals of Pathfinder to use Optim.jl whenever a LogDensityProblem and an Optim.jl optimizer are provided. In the best case, this halves the amount of work performed by Pathfinder. Since the optimization solution stored in PathfinderResult can now be one of two types, this change is marked as breaking.

@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2023

Codecov Report

Base: 93.00% // Head: 78.26% // Decreases project coverage by -14.74% ⚠️

Coverage data is based on head (d7f4bc3) compared to base (1e596a4).
Patch coverage: 83.33% of modified lines in pull request are covered.

📣 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     #129       +/-   ##
===========================================
- Coverage   93.00%   78.26%   -14.74%     
===========================================
  Files          13       15        +2     
  Lines         572      635       +63     
===========================================
- Hits          532      497       -35     
- Misses         40      138       +98     
Impacted Files Coverage Δ
src/Pathfinder.jl 100.00% <ø> (ø)
src/multipath.jl 53.70% <40.00%> (-13.57%) ⬇️
src/trace.jl 40.00% <40.00%> (ø)
src/optimize.jl 71.83% <79.16%> (-21.51%) ⬇️
src/singlepath.jl 81.48% <93.75%> (-9.43%) ⬇️
src/callbacks.jl 95.00% <95.00%> (ø)
src/woodbury.jl 63.42% <0.00%> (-34.86%) ⬇️
src/resample.jl 83.33% <0.00%> (-16.67%) ⬇️
... and 1 more

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