Inferring time-varying internal models of agents through dynamic structure learning. | Synapse