-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Deep Bayesian Model Discovery without using NeuralODE object #169
Comments
What have you tried so far? You'd do the exact same thing except change the optimization to the Bayesian fitting routine. |
Hi Chris. I was trying to extract the parameters of the Flux model as a vector using a function like the following for a model U, `p_model = [] This was now in the correct format to be fed into |
I had posted the same on Julia discourse. I was advised to use |
I highly recommend just changing to a Lux network instead of a Flux one. Is the tutorial using Flux? If so we should just update it |
@gurtajbir it looks like you are on the right track, how many samples is that plot from? Are you dropping the warmup samples? |
Hi @Vaibhavdixit02 . This plot was using the below |
Hi @ChrisRackauckas. Just changing to Lux seemed to considerably improve how the plot looked. Also, with same network size and activation function, the code with Lux faster than that with Flux (almost 3 times as fast). |
Yeah that's expected. Could you make a PR to update that code? |
Would you like me to update the existing deep bayesian discovery example in the PR or create a code file that resembles what I am trying out on Lotka-Volterra ? |
Updating the deep bayesian discovery example in a PR that changes it to Lux (and ultimately improves its stability) would be perfect. |
Sounds good. I'll get started on it. |
I've made a gist redoing https://docs.sciml.ai/Overview/stable/showcase/bayesian_neural_ode/#Step-5:-Plot-diagnostics with If this good enough ? I'll do a PR to update the example in this repo if it's okay |
Yeah that looks good, though I don't think you need the Metal import? |
Yeah, I'm not using it (it's also imported twice ..). Maybe I'll open a PR for it then soon so that we can discuss further things there. |
Wait, the github version is already up to date with SciMLDocs/docs/src/showcase/bayesian_neural_ode.md Lines 21 to 22 in df454f4
With the change dating back from #217 but the live web version isn't up to date yet. |
There is currently an issue with the doc building due to a bug in CUDA #224 |
Hi everyone. I am trying to implement the Deep Bayesian Model Discovery on the Lotka-Volterra model discussed in the Automated Discovery of Missing Physics example. The problem I am facing is that I am not able to figure out a way to pass the parameters of the neural network embedded in the ODE of the Lotka-Volterra model to the Hamiltonian as done here. The main issue here is that the hamiltonian is fed a vector of parameters and they are updated naturally as the optimization is carried out. I am having trouble achieving the same with the missing physics example.
Any pointers as to how this can be achieved will be very helpful. Thanks.
The text was updated successfully, but these errors were encountered: