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

Updated ReducedSystem and renamed to HRedSys (including tutorial) #140

Merged
merged 57 commits into from
May 7, 2024

Conversation

benedict-96
Copy link
Collaborator

Contents of pull request:

  • Updated ReducedSystem (reduced_system.jl)
    1. ReducedSys -> HRedSystem (renaming)
    2. compute_projection_error -> projection_error (renaming)
    3. compute_reduction_error -> reduction_error (renaming)
    4. adjusted interface to conform with HODEProblem from GI (i.e. there are now two vector fields v and f and a hamiltonian h for the full system AND the reduced system).
    5. HRedSys is called with an HODEProblem, an encoder and a decoder (there is an additional keyword argument specifying the integrator).
  • Introduced SymplecticCompression, SymplecticEncoder and SymplecticDecoder (autoencoder.jl, psd.jl and symplectic_auotencoder.jl)
    1. Introduced a supertype SymplecticCompression for SymplecticAutoencoder and PSDArch.
    2. Introduced a supertype SymplecticEncoder for the encoders of the symplectic autoencoder and PSD.
    3. Introduced a supertype SymplecticDecoder for the decoders of the symplectic autoencoder and PSD.

… and PSDArch), SymplecticEncoder and SymplecticDecoder.
Made PSDArch a subtype of SymplecticCompression.
Copy link

codecov bot commented May 6, 2024

Codecov Report

Attention: Patch coverage is 91.48936% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 69.54%. Comparing base (7aa4e60) to head (4462569).

Files Patch % Lines
src/layers/psd_like_layer.jl 66.66% 3 Missing ⚠️
src/data_loader/data_loader.jl 84.61% 2 Missing ⚠️
src/utils.jl 0.00% 2 Missing ⚠️
src/data_loader/batch.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
+ Coverage   68.13%   69.54%   +1.40%     
==========================================
  Files         119      119              
  Lines        3314     3352      +38     
==========================================
+ Hits         2258     2331      +73     
+ Misses       1056     1021      -35     

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

@benedict-96 benedict-96 requested a review from michakraus May 6, 2024 13:44
@michakraus michakraus merged commit d3b8faf into main May 7, 2024
16 checks passed
@michakraus michakraus deleted the reduced_system branch May 7, 2024 06:31
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