From 1630a09fe4e0a5ce4aed1d0bddb4b1a2cd78809e Mon Sep 17 00:00:00 2001 From: Marty Date: Sun, 22 Jan 2023 18:54:35 -0800 Subject: [PATCH] Fix bug in method name Fixing bug in method name, currently cell run is failing with "SGD is undefined" --- 8_sgd_vs_gd/gd_and_sgd.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/8_sgd_vs_gd/gd_and_sgd.ipynb b/8_sgd_vs_gd/gd_and_sgd.ipynb index 6064565..5c293fd 100644 --- a/8_sgd_vs_gd/gd_and_sgd.ipynb +++ b/8_sgd_vs_gd/gd_and_sgd.ipynb @@ -535,7 +535,7 @@ " \n", " return w, b, cost, cost_list, epoch_list\n", "\n", - "w_sgd, b_sgd, cost_sgd, cost_list_sgd, epoch_list_sgd = SGD(scaled_X,scaled_y.reshape(scaled_y.shape[0],),10000)\n", + "w_sgd, b_sgd, cost_sgd, cost_list_sgd, epoch_list_sgd = stochastic_gradient_descent(scaled_X,scaled_y.reshape(scaled_y.shape[0],),10000)\n", "w_sgd, b_sgd, cost_sgd" ] }, @@ -704,4 +704,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +}