You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's hard to come up with a useful example, but:
```julia
using OrdinaryDiffEq, Catalyst, DiffEqFlux, ModelingToolkit
NN(S, I, R, p) = FastChain(FastDense(3,10,tanh),FastDense(10,1))([S, I, R], p)[1]
@register NN(S, I, R, p)
rn = @reaction_network begin
β, S + I --> 2I
γ, I --> R
NN(S, I, R, p3n), I --> Q
δ, Q --> R
end β γ δ p3n
_p3n = Float64.(initial_params(FastChain(FastDense(3,10,tanh),FastDense(10,1))))
@parameters β γ δ p3n
p = [β=>1.0,γ=>1.0,δ=>1.0,p3n=>_p3n] # [α,β]
tspan = (0.0,250.0)
u0 = [999.0,0.0,1.0,0.0] # [S,I,R] at t=0
op = ODEProblem(rn, u0, tspan, p)
sol = solve(op,Tsit5())
```
is such a thing. We can try to handle this better in the future but at least for now it gives `Any` and keeps `Any`.
0 commit comments