Open
Description
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.