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

Implementation of BFGS optimizer #90

Merged
merged 48 commits into from
Dec 4, 2023
Merged

Implementation of BFGS optimizer #90

merged 48 commits into from
Dec 4, 2023

Conversation

benedict-96
Copy link
Collaborator

Implemented the BFGS optimizer including docs. In the process I also made the transformer_mnist script more readable and created an additional ClassificationTransformer neural network. The functions in multi_head_attention.jl, retractions.jl and global_sections.jl have been simplified significantly.

The pr got bigger than I intended (again). Will be more careful in the future.

…various matrix-tensor products is now done with one specific function instead of many different ones.
Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Attention: 75 lines in your changes are missing coverage. Please review.

Comparison is base (cdfd554) 66.23% compared to head (41a46c4) 64.30%.

Files Patch % Lines
src/optimizers/bfgs_cache.jl 0.00% 20 Missing ⚠️
src/optimizers/bfgs_optimizer.jl 0.00% 20 Missing ⚠️
src/arrays/stiefel_lie_algebra_horizontal.jl 52.63% 9 Missing ⚠️
src/arrays/stiefel_projection.jl 57.14% 9 Missing ⚠️
src/architectures/transformer_neural_network.jl 0.00% 6 Missing ⚠️
src/arrays/skew_symmetric.jl 40.00% 6 Missing ⚠️
src/data_loader/batch.jl 0.00% 2 Missing ⚠️
src/data_loader/data_loader.jl 33.33% 2 Missing ⚠️
src/optimizers/init_optimizer_cache.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
- Coverage   66.23%   64.30%   -1.93%     
==========================================
  Files          96       99       +3     
  Lines        2535     2583      +48     
==========================================
- Hits         1679     1661      -18     
- Misses        856      922      +66     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michakraus michakraus merged commit 3863768 into main Dec 4, 2023
9 of 14 checks passed
@michakraus michakraus deleted the bfgs branch December 4, 2023 15:34
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