From 93d7698885b5e5d1fe7015563be904f6193ee9d0 Mon Sep 17 00:00:00 2001 From: Jeremy Howard Date: Mon, 25 Apr 2022 15:53:05 +1000 Subject: [PATCH] fix --- 04_mnist_basics.ipynb | 1 + 13_convolutions.ipynb | 1 - clean/04_mnist_basics.ipynb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/04_mnist_basics.ipynb b/04_mnist_basics.ipynb index 00562c3..e8b6637 100644 --- a/04_mnist_basics.ipynb +++ b/04_mnist_basics.ipynb @@ -3896,6 +3896,7 @@ "metadata": {}, "outputs": [], "source": [ + "with torch.no_grad(): weights[0] *= 1.0001" ] }, { diff --git a/13_convolutions.ipynb b/13_convolutions.ipynb index a3b682a..bf5d08f 100644 --- a/13_convolutions.ipynb +++ b/13_convolutions.ipynb @@ -3285,7 +3285,6 @@ } ], "source": [ - "matplotlib.rcParams['image.cmap']='viridis' " "learn.activation_stats.color_dim(-2)" ] }, diff --git a/clean/04_mnist_basics.ipynb b/clean/04_mnist_basics.ipynb index 88212d5..8147af6 100644 --- a/clean/04_mnist_basics.ipynb +++ b/clean/04_mnist_basics.ipynb @@ -956,7 +956,7 @@ "metadata": {}, "outputs": [], "source": [ - "corrects = (preds>0.5).float() == train_y\n", + "corrects = (preds>0.0).float() == train_y\n", "corrects" ] },