Closed uneverknwwhoim closed 5 years ago
can anyone help me on this?? please
@uneverknwwhoim can you post the error you encounter and at which specific line are you getting it?
checkout the screenshot.. and pls help.. thank u in advance
print your (y_train) and (y_test) and see if the labels are all in the array.
it is listing out as follows
There are issues with your labels in (y_test). You can see that there are integers like 0 which shouldn't exist.
How do i clear that anyidea? I didnt do anything i just loaded my audio data set and ran your project.. Please help me as i am a beginner.. i would be very thankful to u:)
There might be either of two issues here. Either those labels have been converted to zero or those zeros are extra. Check this by checking the shape of the training and test dataset. Print shape(X_train), shape(y_train), shape(x_test) and shape(y_test). train and test shapes should match.
Hi Mithesh! I am also getting the same error as uneverknwwhoim. I checked the dataset, it has 1851 files which is a combination of RAVDESS and SAVEE. While dividing data into testing and training sets, the size of the testing and training sets differ. Also X_train and y_train doesn't have the same shape.
I am getting NaN values which are then replaced by 0 after this code : rnewdf=rnewdf.fillna(0). Please do provide some assistance as soon as possible
I will share you my folder of the audio files if needed.
@Nandy-Saran You won't have same shape for X_train and y_train. They should have same number of rows but features will differ. It doesn't really matter how many number of files you have before splitting.
@Nandy-Saran did u solve the problem ??
@MITESHPUTHRANNEU rows are same though and features different when i checked.. but still the same error.. please help...
@MITESHPUTHRANNEU i even tried to delete the NaN values using dropna() but then i am getting y_train and X_train features different..
@MITESHPUTHRANNEU i would be very glad if u help me out of this asap..
@uneverknwwhoim The problem is as you stated. If you don't remove the null values, then you would be getting the error you stated at the top. If you remove the null values then the shape of X_train and y_train don't match. So ultimately the problem is 'y'. For some reason there are null labels in your dataset. You have make sure to fix that, then everything would be fine.
Can i get a dataset link of yours?
@uneverknwwhoim I have linked the datasets in the readme file and those are only ones which I used for this project.
I am getting an accuracy of 0.0806 %
I have included 2k+ audio files still am not getting the accuracy of 70-80%? What to do?
@uneverknwwhoim try augmenting the data and using different sampling rate to extract more features per audio file.
Hi Mithesh! I am also getting the same error as uneverknwwhoim. I checked the dataset, it has 1851 files which is a combination of RAVDESS and SAVEE. While dividing data into testing and training sets, the size of the testing and training sets differ. Also X_train and y_train doesn't have the same shape.
I am getting NaN values which are then replaced by 0 after this code : rnewdf=rnewdf.fillna(0). Please do provide some assistance as soon as possible
Hi Can you please share me the datasets!! I'm not able get those numbers!!
from keras.utils import np_utils from sklearn.preprocessing import LabelEncoder
X_train = np.array(trainfeatures) y_train = np.array(trainlabel) X_test = np.array(testfeatures) y_test = np.array(testlabel)
lb = LabelEncoder()
y_train = np_utils.to_categorical(lb.fit_transform(y_train)) y_test = np_utils.to_categorical(lb.fit_transform(y_test))
ERROR AT THIS LINE... please help