Algorithm 4 Learning and forgetting. |
Parameters: gain , threshold , goal-learning rate , forgetting rate Input: adjacency matrix , resource signals initiate map synapses at 0 initiate goal synapses at 0 counts the steps start random walk at while learning do a random neighbor of continue the random walk for every point cell point cell output map cell output for all map cell pairs do if then if pre-synaptic high if then if post-synaptic also high potentiate the synapses else if post-synaptic low depress the synapses end if end if end for goal signals for every goal neuron do difference between resource signal and prediction from the map if then if the resource signal exceeds the prediction from the map for every map neuron do potentiate goal synapses end for else if resource signal less than prediction for every map neuron do depress goal synapses end for end if end for end while |