Sequence learning as Bayesian filtering | Synapse