Learning to stay ahead in an uncertain environment | Synapse