How to solve a forced ODE with measured forcing? #166
-
I would like to perform inference on a basic integrator Also, perhaps somebody could help me better understand this example. I find that the explanations are a bit too brief, especially with regarding to the variable 'xn'. By reading the code, I have made the following hypothesis
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @aleksejs-fomins. Each of them features a different neural time stepper architecture, but the API is the same for all of them. In all of these examples we assume 3D tensors in the training data, the same of the tensors corresponds to [batch_size, nsteps, variable_size]. Where batch_size determines the number of trajectories, nsteps defines the length of the rollout horizon, and variable_size defines the number of variables (states, inputs). Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi @aleksejs-fomins.
We have a few existing notebooks that include forcing (control inputs) for neural time steppers.
Each of them features a different neural time stepper architecture, but the API is the same for all of them.
In case you have regularly sampled the forcing signal, you can just include it in the training dataset and label it with a variable string of your choice. We use 'U' for denoting inputs and 'X' for denoting states. This is a convention from control theory.
Your observations on 'X' and 'xn' are correct in the examples above. Please note you can label them as you wish and don't have to fo…