SciML / SciMLSensitivity.jl

A component of the DiffEq ecosystem for enabling sensitivity analysis for scientific machine learning (SciML). Optimize-then-discretize, discretize-then-optimize, adjoint methods, and more for ODEs, SDEs, DDEs, DAEs, etc.
https://docs.sciml.ai/SciMLSensitivity/stable/
Other
330 stars 71 forks source link

Neural Ordinary Differential Equations with Flux produces NaNs #859

Closed SirLukeSchande closed 1 year ago

SirLukeSchande commented 1 year ago

I just saw that the output of the example Neural Ordinary Differential Equations with Flux is a vector of NaNs.

I did not try to run it locally but it seems that it has been that way ever since the code switched from Optim to NLopt.

ChrisRackauckas commented 1 year ago

The BFGS just isn't needed there so I removed it. What was going on is that the initial hessian estimate of I is unstable. In Optim we can set an initial step norm to be small to prevent the instability. But in NLopt we cannot, so it's just unstable. But since it's not needed I'll just remove it from the docs and the example will do fine.