From 7ba844f2b5646fa957603d46504e32bed6676267 Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:04:27 -0400 Subject: [PATCH] Created using Colab --- Notebooks/Chap07/7_2_Backpropagation.ipynb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Notebooks/Chap07/7_2_Backpropagation.ipynb b/Notebooks/Chap07/7_2_Backpropagation.ipynb index e977edd..dac7e89 100644 --- a/Notebooks/Chap07/7_2_Backpropagation.ipynb +++ b/Notebooks/Chap07/7_2_Backpropagation.ipynb @@ -4,7 +4,6 @@ "metadata": { "colab": { "provenance": [], - "authorship_tag": "ABX9TyM2kkHLr00J4Jeypw41sTkQ", "include_colab_link": true }, "kernelspec": { @@ -230,8 +229,8 @@ "# We'll need the indicator function\n", "def indicator_function(x):\n", " x_in = np.array(x)\n", - " x_in[x_in>=0] = 1\n", - " x_in[x_in<0] = 0\n", + " x_in[x_in>0] = 1\n", + " x_in[x_in<=0] = 0\n", " return x_in\n", "\n", "# Main backward pass routine\n", @@ -353,4 +352,4 @@ "outputs": [] } ] -} +} \ No newline at end of file