-
Notifications
You must be signed in to change notification settings - Fork 19
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
Feedback and Contributing #12
Comments
"hello" (sorry couldn't help it) |
Hi @mschauer I'm trying to port this example to Bridge.jl. Can I check that the noise term is correct (ie matching my other example)? function Bridge.σ(t, u, P::SIR)
(S,I,R) = u
N = S + I + R
ifrac = P.β*P.c*I/N*S
rfrac = P.γ*I
return @SMatrix Float64[
sqrt(ifrac) 0.0
-sqrt(ifrac) -sqrt(rfrac)
0.0 sqrt(rfrac)
]
end or do I need to remove the square roots? In my Any tips on parameter inference using Bridge.jl when data is the cumulative number of cases (see here) would be great, and would allow me to add another example. Full gist so far here |
Bridge doesn't support callbacks. I would just simulate and reject simulated trajectories which become negative, for that to work, you can use I can give you an example for inference from the cumulative number of cases, perhaps using https://github.com/mschauer/MitosisStochasticDiffEq.jl with @frankschae because that is what we are currently working on/working with. |
Thanks @mschauer. I have a reparameterization from Fintzi et al. that transforms to consider log(X(t)+1), but your workaround (which is obvious now that you mention it) is great for now. https://github.com/epirecipes/sir-julia/blob/master/markdown/mbp/mbp.md Thanks for the pointer to |
This issue is held open for general feedback, feature requests and to coordinate contributions to the package; or just to say "hello".
The text was updated successfully, but these errors were encountered: