Skip to content

Commit dd15c9a

Browse files
fix comment
1 parent 53c89dd commit dd15c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ann_class/forwardprop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def sigmoid(a):
4242
def forward(X, W1, b1, W2, b2):
4343
Z = sigmoid(X.dot(W1) + b1) # sigmoid
4444
# Z = np.tanh(X.dot(W1) + b1) # tanh
45-
# Z = np.maximum(X.dot(W1) + b1) # relu
45+
# Z = np.maximum(X.dot(W1) + b1, 0) # relu
4646
A = Z.dot(W2) + b2
4747
expA = np.exp(A)
4848
Y = expA / expA.sum(axis=1, keepdims=True)

0 commit comments

Comments
 (0)