Is it possible to add an input of the neural network which does not have a gradient in the ODEs? #1334
-
|
Hi, From my understanding, in the framework, the input of the neural network is t = time, and the outputs are X, Y, Z, Vx, Vy, and Vz, because all the derivatives in the equations are time-derivative. However, in the real world, the dynamics is not time-dependent only. Thank you and look forward to comments! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Yes, you can add any features that can affect the output. The physics information just works as regularization terms that make your NN avoid overfitting. |
Beta Was this translation helpful? Give feedback.
Just expand the dimension of your inputs.It will not affect the way you define your ODE/PDE. In your case, assume that you have 2 inputs:
tand additional control inputsUYou can define the domain as below:For multi-dimensional inputs, you can refer to https://deepxde.readthedocs.io/en/latest/modules/deepxde.geometry.html#module-deepxde.geometry.geometry_nd. Remind that if you want to use
.Hypercube(), you won't need.GeometryXTime()anymore. Keep in mind that,.Interval()or.TimeDomain()is just a convenient way to express your computati…