-
Notifications
You must be signed in to change notification settings - Fork 59
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
SEIR Example #44
Comments
p.s. Just realised it was unclear on which is universal and which is neural, edited |
@ccrnn I also have been working on translating the UDE codes into the SciML Sensitivity + Lux interface. Here are the key points based on your prior comment: (a) The code I have provided below mimics the original code closely. (b) The plots for both prediction and estimation match the original plots in the paper. (c) I have not yet done the SINDY part, but will implement it in the coming days. Can you have a look at the code below and also compare with yours? This may also improve some of the results you are seeing on your end I guess:
|
Thanks for this - how did you find the right form for the [1][1], [1][2], etc? I was trying to find this! With the component array too. Not being able to predict for [2:4] was something weird with having u0 in the predict function. I am still seeing linear approximations for the first example, and incorrect non-linear approximations for the second, with your code too though? |
@ccrnn: he [1] basically prints out the vector of 5 elements. Then we need to access each element separately through 1 more level of indexing.. Regarding your second question, even in Chris's original code, the Neural ODE and the UDE extrapolations are not good.. For now, it's good that we match those results with SciML Sensitivity. We can indeed match the results. We can spend some time later to maybe optimize the code hyperparameters etc to get better results. |
Hey @RajDandekar I note that the SEIR example has not updated to more modern SciML usage? E.g. |
Someone needs to spend the time to update all of this. I think we want to maintain it in the SciMLDocs in the near future if someone takes the time. |
Translation of SEIR Example, based on Lotka Volterra 1:
Hiya, ok, here's the first...
The text was updated successfully, but these errors were encountered: