1. A method of neural learning, comprising: modulating an input from a pre-synaptic neuron to a post-synaptic neuron by a weight of a synapse connecting the pre-synaptic neuron and the post-synaptic neuron; and adapting the weight of the synapse based on a resource associated with the synapse, wherein a value of the resource is modified as a function of time relative to adapting the weight of the synapse, such that the value of the resource is recovered over time towards a previous value before the modification.