title: Derivative of softmax function in Python
body: <p>Below is the softmax activation function for a neural network.  What is the derivative of this function?</p>
  
  <pre><code>def softmax(z):
     e = np.exp(z)
     return e / np.sum(e, axis=1)
  </code></pre>