-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
universal DE. - possible? #429
Comments
MTK supports it. I haven't tried specifically with the MethodOfLines discretizer, but if you use a registered symbolic function for the array I don't see why it wouldn't work given the MTK support. It would be good to test it better here, though for these applications I usually get a little bit more manual right now with the codegen since there's some tricks that the codegen wouldn't do here. |
Thanks Chris!. This could very well be a case of me running before learning to walk. I tried adapting the "adding Parameters" example from the Docs to optimise Dn and Dp as a test case, but hitting snags. Mwe as follows.
This gives the following Error.
Any ideas on where this is going wrong? Thanks. |
Question❓
In the Julia Con 2022 talk, it was suggested that is was possible to embed a NN as part of a system of PDEs. I am struggling with figuring out how to specify the weights (as some component vector, θ, which I want to optimise) as parameters. Something along the lines of
using @parameters P, and @named sys = PDESystem(eqs, bcs, domain, [t, z, r], [C(t, z), q(t, z, r), V(t)], [P]; defaults=Dict(P => collect(θ)) )
.where eqs includes the NN([V,t], P) and then,
newprob = remake(prob, p =[collect(θ)])
Is this doable, if so what do I need to change to make this work?
Thanks in advance.
The text was updated successfully, but these errors were encountered: