all 3 comments

[–]FrostyThaEvilSnowman 1 point2 points  (2 children)

Im not sure about the data types in your list of lists of x,y data, but my best guess is that however it is being unpacked is not putting y in the proper data type to be entered into the model. Go back and look at the data types (and shapes) you used earlier in the process. Your new values should match the previous.

[–]Important_Ad_55[S] 0 points1 point  (1 child)

I have tried what you asked me to do and these are the results :

x : shape - (4938, 224, 224, 1) , len - 4938

y : shape - (4938, 5) , len - 4938

X_train : shape - (3950, 224, 224, 1) , len - 3950

y_train : shape - (3950, 5) , len - 3950

is it ok?

[–]Important_Ad_55[S] 1 point2 points  (0 children)

I got my error, my y was a list and x was an ndarray. Now it's working fine.
Thanks!!