-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Error in the UODEs training when the network enlarges #689
Comments
anyone? please help! |
When I c/p your code I get a
It does not crash and the loss decreases but this fact could be relevant. It throws the error at the line Interestingly, I still got the same error after I changed every array and range to Float32s by adding some So here is a working example of your code
|
Has a working example. |
Hi, currently, I'm modeling a dynamic system with a universal ordinary differential equation. This system and the UODE receive external inputs f(t) and respond according to them. To train the UODE, I dispose of experimental data in only one case. However, for another two cases, I know some properties of the output; thus, I implement them as constraints. Here, it is an MWE, where the constraints correspond to a positive u1 at five seconds when the external input is zero and a u1 equal to zero at 100 seconds for a triangular pulse.
When I run the above code with ten neurons in the hidden layer, it works perfectly. However, if I use 20 neurons in the hidden layer, I get this message
ERROR: LoadError: MethodError: no method matching getindex(::ChainRulesCore.NotImplemented, ::Int64)
; the full stracktrace is:Does anybody know why this happens by increasing the number of neurons? Is there any solution?
The text was updated successfully, but these errors were encountered: