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

Added tutorial on using torch optimizer with heyoka #205

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

seba0018
Copy link
Contributor

I added to the already existing tutorial "torch_and_heyoka.ipynb" a section on using the Adam optimizer from torch. I use a simplified case of the Neural ODE training tutorials to showcase the difference between simple fixed learning rate stochastic gradient descent and training with the Adam optimizer.

Extrapolating this tutorial to other torch optimizers and the use of schedulers should be straightforward.

@bluescarni
Copy link
Owner

Hi @seba0018 and thanks for the PR!

There's a somewhat cryptic warning that makes the documentation build fail:

https://app.circleci.com/pipelines/github/bluescarni/heyoka.py/1528/workflows/4657b0c1-081d-4629-8649-a724da0b52e5/jobs/4052?invite=true#step-102-643469_128

I think that the problem is that there is a wrong usage of the # symbol for introducing new sections in the markup cells of the notebook. The error message seems to be saying that you cannot follow a # (new section) with a ### (new sub-sub-section).

@seba0018
Copy link
Contributor Author

seba0018 commented Dec 17, 2024

Thanks for interpreting the error @bluescarni ! I removed all sub-sub-sections, hopefully that will resolve it. :)

@bluescarni
Copy link
Owner

Cheers! I will go ahead and merge this.

@bluescarni bluescarni merged commit b462784 into bluescarni:main Dec 17, 2024
16 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.

2 participants