-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Control Input for NeuralODE #844
Comments
Just use DataInterpolations to make the interpolation. |
After this Interpolation:
How should I use the Control as an external control signal in the following code?
The Control is the daily vaccination rate, and the primary variable in the ode_data is the Infection number. |
@ChrisRackauckas and @MortezaBabazadehShareh ![Just a concept code, could be taken into consideration]In the above code snippet, we can modify it slightly to externally include the control input as an added input while building the neural networks layers using Here is the code snippet:
Here, dudt_with_control is a modified function that takes the state u, parameters p, and time t, and appends the control input at each time step. The control input is assumed to be obtained from the function Control(t). The rest of the code is adjusted accordingly to incorporate this modified model into the Neural ODE and for training. |
How can we define a control input for a Neural ODE? The control input is an array with a specific value for each time step.
The text was updated successfully, but these errors were encountered: