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

Bugs in Neural ODE example in docs #846

Closed
vleon1234 opened this issue Jul 24, 2023 · 1 comment · Fixed by #847 or #848
Closed

Bugs in Neural ODE example in docs #846

vleon1234 opened this issue Jul 24, 2023 · 1 comment · Fixed by #847 or #848

Comments

@vleon1234
Copy link

On a fresh install of julia 1.9.2, I Pkg add Lux, DiffEqFlux, DifferentialEquations, Optimization, OptimizationOptimJL, Random, Plots

Then, I try to run the copy pastable code in the example here: https://docs.sciml.ai/DiffEqFlux/stable/examples/neural_ode/

There are two errors that occur:

  1. Lux.ComponentArray(p) throws an error that ComponentArray doesn't exist. To fix, I did Pkg add ComponentArrays, and deleted Lux., so the working line is then: pinit = Lux.ComponentArray(p)
  2. Optimization.solve(..., ADAM(0.05),...) throws an error. To fix, I replaced ADAM(0.05) with Optimisers.ADAM(0.05).

After fixing these to bugs, the example ran for me. Not sure if this is best practices, but this is what worked for me.

@ChrisRackauckas
Copy link
Member

Yeah these docs haven't built in awhile, and there's a few old things in there. It's one of the JuliaCon hackathon topics to revive these docs #848

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 a pull request may close this issue.

2 participants