diff --git a/Chapter14 - Intro to LSTMs - Learn to Write Like Shakespeare.ipynb b/Chapter14 - Intro to LSTMs - Learn to Write Like Shakespeare.ipynb index 83edff0..7cf329b 100644 --- a/Chapter14 - Intro to LSTMs - Learn to Write Like Shakespeare.ipynb +++ b/Chapter14 - Intro to LSTMs - Learn to Write Like Shakespeare.ipynb @@ -599,6 +599,7 @@ " total_loss += loss.data / bptt\n", "\n", " epoch_loss = np.exp(total_loss / (batch_i+1))\n", + " global min_loss\n", " if(epoch_loss < min_loss):\n", " min_loss = epoch_loss\n", " print()\n",