From behavioral plasticity to neuronal computation