title: loss function in LSTM neural network
body: <p>I do not understand what is being minimized in these networks.
  Can someone please explain what is going on mathematically when the loss gets smaller in LSTM network?</p>
  
  <pre><code>model.compile(loss='categorical_crossentropy', optimizer='adam')
  </code></pre>