Skip to content

Commit 224878b

Browse files
committed
Remove duplicated code for clarity
1 parent 0acb97a commit 224878b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

intro-neural-networks/gradient-descent/GradientDescent.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@
141141
" for e in range(epochs):\n",
142142
" del_w = np.zeros(weights.shape)\n",
143143
" for x, y in zip(features, targets):\n",
144-
" output = output_formula(x, weights, bias)\n",
145-
" error = error_formula(y, output)\n",
146144
" weights, bias = update_weights(x, y, weights, bias, learnrate)\n",
147145
" \n",
148146
" # Printing out the log-loss error on the training set\n",

0 commit comments

Comments
 (0)