How to create my own system to work through collab notebooks with #206
-
Hello, I feel like this is a deeply noobish question but I come from a functional programming background and a biology background so some of the jargon around ODEs is beyond me. I don't understand how to register my own custom ODEs. I have tried looking at how they are defined in psl.autonomous and copying it but that doesn't seem to generate the right class that the tutorial notebooks expect. I also tried looking a the initial notebooks on syntax, but i didn't follow the cyclical graph explanation for a system or how that relates to making a new ground truth system for training. I found a previous discussion #131
But I then get stuck in trying to convert it into a UDE problem. Apologies if I am missing something obvious. If there is something obvious am missing I will fix it and try to add a tutorial notebook on the process if people think that would be useful. Thanks for the help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @MatisPatel, yeah I see how this can get confusing. Our PSL submodule is to be deprecated as it is overloaded with both pytorch and numpy backend. I encourage you to have a look at this ODE example Here, we define a custom ODE class for the Brusselator system as follows:
This class inherits from the For more examples you can also have a look at the Neural ODE and universal differential equation notebooks. |
Beta Was this translation helpful? Give feedback.
Hi @MatisPatel, yeah I see how this can get confusing. Our PSL submodule is to be deprecated as it is overloaded with both pytorch and numpy backend.
For ODEs we encourage the users to use Classes in our ode.py.
I encourage you to have a look at this ODE example
Here, we define a custom ODE class for the Brusselator system as follows: