Bayesian inference and optimisation of stochastic dynamical networks | Synapse