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

Fix numpy David model training #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patrykgruszka
Copy link

First of all, thanks for the great neural network example.

I've got an error trying to run the 01/03 script (Let's code a Neural Network in plain NumPy):

Traceback (most recent call last):
  File "/mynn/main.py", line 60, in <module>
    params_values = train(np.transpose(X_train), np.transpose(y_train.reshape((y_train.shape[0], 1))), NN_ARCHITECTURE, 10, 0.01)[0]
KeyError: 0

I think there is unnecessary [0] index reference. After removing this everything run smoothly.

By the way I've also removed unnecessary semicolons in the python scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant