-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
Keyerror : 0 #55
Comments
Hi @MalavikaAR 👋. ! Judging by the error I think that you are trying to pass |
Ohh, okay, I will try to change that in my dataset. But what was the issue in trying with make_moons?? |
Heyy @SkalskiP , I changed it to numpyarray, and that error was gone, thankyou, but now I got the following error: KeyError Traceback (most recent call last) 1 frames KeyError: 'W0' Would you please help me? I noticed some other people have asked about the same error in your article in the 'medium'. |
@MalavikaAR could you please show me how did you use |
https://colab.research.google.com/drive/1dkvOMq2AYuHlTYLHodQzmro1kweY5W3O#scrollTo=e9-aFcBbNlsx Please take a look at this link. I have tried it in colab. |
I just wanted to add, the error is gone when I deleted the last indexing [0] of ln: [19] and got an accuracy of 0.98. ln : [19] Trainingparams_values = train(np.transpose(X_train), np.transpose(y_train.reshape((y_train.shape[0], 1))), NN_ARCHITECTURE, 10000, 0.01)[0] |
I got an error while running the NumPy neural network code using my dataset,
"'DataFrame' object has no attribute 'reshape'".
Also then I ran using your dataset make_moons, and again I got an error
"Keyerror: 0".
ln [19]:
#Training
params_values = train(np.transpose(X_train), np.transpose(y_train.reshape((y_train.shape[0], 1))), NN_ARCHITECTURE, 10000, 0.01)[0]
KeyError Traceback (most recent call last)
in ()
1 # Training
----> 2 params_values = train(np.transpose(X_train), np.transpose(y_train.reshape((y_train.shape[0], 1))), NN_ARCHITECTURE, 10000, 0.01)[0]
KeyError: 0
Would you please help me with what to do?
Is it necessary to take the transpose and reshaping the X and y??
The text was updated successfully, but these errors were encountered: