Skip to content

Commit

Permalink
fix typo: np.doc -> np.dot
Browse files Browse the repository at this point in the history
  • Loading branch information
llimllib authored Sep 17, 2022
1 parent 35f983c commit dc65968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/dlgo/nn/average_digits.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def predict(x, W, b): # <1>
print(predict(x_3, W, b)) # <3>
print(predict(x_18, W, b)) # <4> 0.96

# <1> A simple prediction is defined by applying sigmoid to the output of np.doc(W, x) + b.
# <1> A simple prediction is defined by applying sigmoid to the output of np.dot(W, x) + b.
# <2> Based on the examples computed so far we set the bias term to -45.
# <3> The prediction for the example with a "4" is close to zero.
# <5> The prediction for an "8" is 0.96 here. We seem to be onto something with our heuristic.
Expand Down

0 comments on commit dc65968

Please sign in to comment.