Skip to content

Commit 0ee4bd0

Browse files
committed
stuff
1 parent b707a6c commit 0ee4bd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Fall20/NeuralNetworks1/vectorized.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ def average_nn(x):
1010
[1/3, 1/3, 1/3] # a weights matrix of size 1 x 3
1111
)
1212
bias = 0
13+
14+
# we perform wx + b, using np.matmul to multiply matrices w and x
1315
weighted_input = np.matmul(weights, x) + bias
1416
y = activation(weighted_input)
1517
return y

0 commit comments

Comments
 (0)