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

Neuralsde #166

Merged
merged 6 commits into from
Nov 26, 2023
Merged

Neuralsde #166

merged 6 commits into from
Nov 26, 2023

Conversation

JuanKo96
Copy link
Member

@JuanKo96 JuanKo96 commented Aug 31, 2022

Opening the first PR for NeuralSDE for integrating sdeint into torchdyn. Also, as I formatted code files I have made changes using black, we can use this format for future uses if everyone likes it.

The goal is to substitute sdeint module from torchsde into torchdyn native version. Will open different PRs for Brownian Interval and adjoint methods(+ other methods if possible).

  • sdeint with fixed step size
  • NeuralSDE module able to run training
  • SDEFunc module for NeuralSDE
  • jupyter notebook for NeuralSDE cookbook

Copy link
Member

@Zymrael Zymrael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall.

Let's get some basic correctness tests in for sdeint before moving on to adaptive integration.

@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2023

Codecov Report

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

Comparison is base (c708c4c) 64.59% compared to head (0bbdd3e) 66.15%.

Files Patch % Lines
torchdyn/core/neuralde.py 54.90% 23 Missing ⚠️
torchdyn/core/problems.py 61.22% 19 Missing ⚠️
torchdyn/numerics/sdeint.py 78.12% 14 Missing ⚠️
torchdyn/core/defunc.py 70.45% 13 Missing ⚠️
torchdyn/numerics/solvers/sde.py 93.97% 5 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #166      +/-   ##
==========================================
+ Coverage   64.59%   66.15%   +1.55%     
==========================================
  Files          27       29       +2     
  Lines        1881     2074     +193     
==========================================
+ Hits         1215     1372     +157     
- Misses        666      702      +36     

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

@JuanKo96
Copy link
Member Author

This PR is ready to be merged.

@JuanKo96 JuanKo96 merged commit 1e8979a into master Nov 26, 2023
114 checks passed
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.

None yet

3 participants