From dde3dfee124774a36b2c236a420f5efa41271f56 Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Fri, 8 Oct 2021 23:34:18 -0700 Subject: [PATCH 1/3] import scipy to notebook --- Section #4 - Capstone/simpsons.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Section #4 - Capstone/simpsons.ipynb b/Section #4 - Capstone/simpsons.ipynb index 3d8e127..e81af81 100644 --- a/Section #4 - Capstone/simpsons.ipynb +++ b/Section #4 - Capstone/simpsons.ipynb @@ -273,6 +273,7 @@ "source": [ "# Training the model\n", "\n", + "import scipy", "from tensorflow.keras.callbacks import LearningRateScheduler\n", "callbacks_list = [LearningRateScheduler(canaro.lr_schedule)]\n", "training = model.fit(train_gen,\n", @@ -368,4 +369,4 @@ } } ] -} \ No newline at end of file +} From 43240c2663bc2e67fa89758d008a8d9ea67fe009 Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Fri, 8 Oct 2021 23:35:12 -0700 Subject: [PATCH 2/3] new line to import scipy --- Section #4 - Capstone/simpsons.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Section #4 - Capstone/simpsons.ipynb b/Section #4 - Capstone/simpsons.ipynb index e81af81..02d9e71 100644 --- a/Section #4 - Capstone/simpsons.ipynb +++ b/Section #4 - Capstone/simpsons.ipynb @@ -273,7 +273,7 @@ "source": [ "# Training the model\n", "\n", - "import scipy", + "import scipy\n", "from tensorflow.keras.callbacks import LearningRateScheduler\n", "callbacks_list = [LearningRateScheduler(canaro.lr_schedule)]\n", "training = model.fit(train_gen,\n", From 066e0e85a4c640307f9ce4afdce869801986c60d Mon Sep 17 00:00:00 2001 From: Bruno Cabral Date: Fri, 8 Oct 2021 23:36:28 -0700 Subject: [PATCH 3/3] import scipy to simpsons.py --- Section #4 - Capstone/simpsons.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Section #4 - Capstone/simpsons.py b/Section #4 - Capstone/simpsons.py index d96fce4..34f4259 100644 --- a/Section #4 - Capstone/simpsons.py +++ b/Section #4 - Capstone/simpsons.py @@ -13,6 +13,7 @@ import matplotlib.pyplot as plt from tensorflow.keras.utils import to_categorical from tensorflow.keras.callbacks import LearningRateScheduler +import scipy IMG_SIZE = (80,80) channels = 1