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

Better Defaults: Auto AD Selection for Newton Methods #244

Merged
merged 10 commits into from
Oct 18, 2023

Conversation

avik-pal
Copy link
Member

@avik-pal avik-pal commented Oct 17, 2023

  • Cleanup the Poly Algorithms
  • Proper AD Selection

src/default.jl Outdated Show resolved Hide resolved
src/default.jl Outdated Show resolved Hide resolved
src/default.jl Outdated Show resolved Hide resolved
@ChrisRackauckas
Copy link
Member

did you time it at all? It's completely dynamically dispatching and not type stable.

@avik-pal
Copy link
Member Author

Yes not ready yet 😓

@avik-pal
Copy link
Member Author

I will loop unroll that version to avoid adding sols for if we add anything to the cache later

@avik-pal avik-pal changed the title [WIP] Better Defaults [WIP] Better Defaults: Auto AD Selection for Newton Methods Oct 17, 2023
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #244 (91c0ca0) into master (7a5e231) will increase coverage by 7.31%.
The diff coverage is 88.63%.

@@            Coverage Diff             @@
##           master     #244      +/-   ##
==========================================
+ Coverage   86.05%   93.37%   +7.31%     
==========================================
  Files          14       14              
  Lines        1205     1147      -58     
==========================================
+ Hits         1037     1071      +34     
+ Misses        168       76      -92     
Files Coverage Δ
src/dfsane.jl 100.00% <100.00%> (+0.67%) ⬆️
src/gaussnewton.jl 76.19% <100.00%> (+1.19%) ⬆️
src/levenberg.jl 98.46% <100.00%> (+0.03%) ⬆️
src/raphson.jl 100.00% <100.00%> (ø)
src/trustRegion.jl 99.36% <100.00%> (+<0.01%) ⬆️
src/utils.jl 82.85% <95.83%> (+5.07%) ⬆️
src/default.jl 78.48% <79.41%> (+46.20%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@avik-pal
Copy link
Member Author

Everything is type-stable to the extent that the output alg is a union type.

@avik-pal avik-pal changed the title [WIP] Better Defaults: Auto AD Selection for Newton Methods Better Defaults: Auto AD Selection for Newton Methods Oct 17, 2023
@avik-pal avik-pal force-pushed the ap/defaults branch 2 times, most recently from 03d1e85 to a5ace21 Compare October 17, 2023 21:05
src/default.jl Outdated Show resolved Hide resolved
@avik-pal
Copy link
Member Author

@ChrisRackauckas this is ready to go in

@ChrisRackauckas ChrisRackauckas merged commit a00ec0b into SciML:master Oct 18, 2023
9 of 10 checks passed
@avik-pal avik-pal deleted the ap/defaults branch October 18, 2023 15:40
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