title: index 1 is out of bounds for axis 0 with size 1
body: <pre><code>N=100
  numbers_training_pattern=10
  for pattern in range(number_training_pattern):
  rate=np.zeros((1,N))
  
  
     for epoch in range(1,nepochs+1):
  
  
          if epoch&lt;=1:
             clamp=1
          else:
             clamp=0
  
         activ=np.zeros((1,N))
         for neuron in range(N):
  
  
            PreSynInput = rate.T + (Testing_pattern[neuron, pattern] * clamp)
  
  
            activ[neuron] = np.dot(PreSynInput.T,autocorrelation_matrix[:,neuron])
  </code></pre>
  
  <p>error
  IndexError                                Traceback (most recent call last)
   in ()
       17 
       18 
  ---> 19    activ[neuron] = np.dot(PreSynInput.T,autocorrelation_matrix[:,neuron])
       20 
       21 </p>
  
  <p>IndexError: index 1 is out of bounds for axis 0 with size 1</p>