Skip to content
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

Plot the accuracy vs the params graph for the learning rate #6

Open
DantrazTrev opened this issue Nov 30, 2019 · 3 comments
Open

Plot the accuracy vs the params graph for the learning rate #6

DantrazTrev opened this issue Nov 30, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@DantrazTrev
Copy link
Owner

No description provided.

@DantrazTrev DantrazTrev added the enhancement New feature or request label Nov 30, 2019
@exoushia
Copy link

exoushia commented Dec 4, 2019

working on issue #6

I was debugging the code and trying to run the test database, and i ran into this error:
Traceback (most recent call last):
File "test.py", line 25, in
net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
File "/home/mitushi/Desktop/kwoc/Neural-Networks/network.py", line 35, in SGD
self.update_mini_batch(mini_batch, eta)
File "/home/mitushi/Desktop/kwoc/Neural-Networks/network.py", line 45, in update_mini_batch
delta_nabla_b, delta_nabla_w,net = backprop(self,x, y)
File "/home/mitushi/Desktop/kwoc/Neural-Networks/backpropogation.py", line 17, in backprop
delta = net.cost_derivative(activations[-1], y) *
File "/home/mitushi/Desktop/kwoc/Neural-Networks/network.py", line 59, in cost_derivative
return (output_activations-y)
ValueError: operands could not be broadcast together with shapes (30,1) (10,1)

I guess there's a mismatch between the expected output shape and the shape of the database. How should i fix this?

@DantrazTrev
Copy link
Owner Author

I think the issue was in the way we were handling the network update in the backpropogation.py. I've tried to fix it, the issue was not intentional, you can check there is still an issue up which is unlisted

@DantrazTrev
Copy link
Owner Author

@exoushia I guess that issue has been solved now.

Repository owner deleted a comment Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants