From a8dcd9ead2eaf5c2b95412e664670a09012364b8 Mon Sep 17 00:00:00 2001
From: Andreas Leitherer <leitherer@fhi-berlin.mpg.de>
Date: Wed, 16 Dec 2020 16:02:16 +0100
Subject: [PATCH] Changed n_epochs from 7 to 5 to reduce training time; added
 explanations in red

---
 convolutional_nn.ipynb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/convolutional_nn.ipynb b/convolutional_nn.ipynb
index 44b55de..c2bf800 100644
--- a/convolutional_nn.ipynb
+++ b/convolutional_nn.ipynb
@@ -671,7 +671,7 @@
     "\n",
     "An **epoch** is a single step in training a neural network; one epoch is completed when the neural network has seen every training sample once. \n",
     "\n",
-    "<span style=\"color:red\"> **Run the cell below to start training your first convolutional neural network. The full optimization should take approximately 7 minutes (~1 min per epoch); please take this time to read carefully the materials above, and maybe check out some external references.**</span>."
+    "<span style=\"color:red\"> **Run the cell below to start training your first convolutional neural network. For the current setting for the number of epochs, the full optimization should take approximately 20 minutes (~4 min per epoch); please take this time to read carefully the materials above, and maybe check out some external references.**</span>."
    ]
   },
   {
@@ -680,7 +680,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "nb_epochs=7     \n",
+    "nb_epochs=5     \n",
     "\n",
     "# train the model for the specified nb_epochs\n",
     "history_no_reg = model_no_reg.fit(x_train, y_train,\n",
@@ -808,7 +808,7 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    " <span style=\"color:red\"> **Run the cell below to start training your *regularized* convolutional neural network. The full optimization should take approximately 7 minutes (~1 min per epoch); please take this time to read carefully the materials above, and maybe check out some external references.**</span>."
+    " <span style=\"color:red\"> **Run the cell below to start training your *regularized* convolutional neural network. For the current setting for the number of epochs, the full optimization should take approximately 20 minutes (~4 min per epoch); please take this time to read carefully the materials above, and maybe check out some external references.**</span>."
    ]
   },
   {
@@ -817,7 +817,7 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "nb_epochs=7     \n",
+    "nb_epochs=5     \n",
     "\n",
     "# train the model for the specified nb_epochs\n",
     "history = model.fit(x_train, y_train,\n",
-- 
GitLab