Stochastic gradient descent-based inference for dynamic network models with attractors | Synapse