State-dependent learning