I have used the same MLP code as in tutorial still giving error!!
https://drive.google.com/file/d/1v2MgjVfrBsx_4WvhDH4vi3Yvt1pZgzzc/view?usp=sharing
MLP_Pokemon_Classification
Hey @rajukumarbhui, your y_train which you pass to the training funciton should have shape (number of examples,) and not (number of examples, 1).
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.
still not working https://drive.google.com/file/d/1v2MgjVfrBsx_4WvhDH4vi3Yvt1pZgzzc/view?usp=sharing
please reply your previous suggestion not working for me.
Hey @rajukumarbhui, sorry for the delay, actually y should be in 0,1,2, as well.
I have to make 2-3 change,
from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
y_t = le.fit_transform(y_train)
X = x_train
y_t
l = train(x_train,y_t,model,500,0.0002)
Also in training function make classes = 3
And lastly model = NeuralNetwork(input_size=4800,layers=[100,50],output_size=3)
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.