-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
np.dot(w, activation) throws an error in backprop(x, y) #29
Comments
Note also that VS Code says that the shapes of w and activation were (10, 30) and (30, 784) respectively. This seems to be different from the shapes in the error. |
I can confirm on Python 3.8.2 with Numpy 1.18.3 that this error occurs (albeit with recorded sizes of (30, 1) and (10, 1)), with both the 2.x and 3.x versions of the code. The line in question is line 123 of network.py. |
me too! any fixes? |
I'm late to the game, but I'm curious for other people if they were using the I'd be surprised if others made the same mistake that I did, but I thought I had the same problem in this ticket for a while until I realized my mistake. That's what was going wrong for me. I just think a problem big enough that the vectors can't match for dot products is a good indicator that it's probably a math logic problem and not a python/numpy version issue. I'm using Python 3.6.9 and Numpy 1.19.1 |
I also wrote my own function to load and format the data and that throws All 3 are complaining about line 101 ( |
fixed. The shape of the matrices are |
This code
throws the following error, and I don't really know why. (I am using Python 3.8.3 and numpy 1.18.4)
The text was updated successfully, but these errors were encountered: