MiteshPuthran / Speech-Emotion-Analyzer

The neural network model is capable of detecting five different male/female emotions from audio speeches. (Deep Learning, NLP, Python)
MIT License
1.3k stars 438 forks source link

ValueError: Shapes (None, 4) and (None, 10) are incompatible #52

Closed Arafat4341 closed 3 years ago

Arafat4341 commented 3 years ago

In the model training part, line: cnnhistory=model.fit(x_traincnn, y_train, batch_size=16, epochs=700, validation_data=(x_testcnn, y_test))

I am getting the following error: ValueError: Shapes (None, 4) and (None, 10) are incompatible

Would anyone kindly tell me why am I getting this and how to solve this? Thanks in advance!

Arafat4341 commented 3 years ago

Sorry I found the problem and fixed it.

SpooderManEXE commented 3 years ago

how did you solve it?