Skip to content

Commit e30cce3

Browse files
authored
Update 03-Caluclating-Slopes.py
Value stored was 7 and datacamp expected -7, flipping these variables around solves that.
1 parent e5071ef commit e30cce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

20-deep-learning-in-python/02-optimizing-a-neural-network-with-backward-propagation/03-calculating-slopes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
preds = (weights * input_data).sum()
1818

1919
# Calculate the error: error
20-
error = preds - target
20+
error = target - preds
2121

2222
# Calculate the slope: slope
2323
slope = input_data * error * 2

0 commit comments

Comments
 (0)