Shaping the learning curve: epigenetic dynamics in neural plasticity