ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10,) + inhomogeneous part.
I searched a lot to solve my problem and couldn’t solve it.
I would appreciate it if someone could help me solve my problem.
places to check, your input shape, what tf function you used as it should be tf.keras.layers.Input
But the expected error should for the length of training and validation dataset mismatch. I am sharing a screenshot from the assignment notebook where it mentions about this.
So make sure you have calculated these both in the same way for validation dataset and training dataset and implement the steps per epoch for both of them same way. as using different function for one and another function for different dataset can also throw such error
Hi @Deepti_Prasad
I did not change the versions
I solved my problem based on the same versions I mentions above.
I updated my jupyter notebook and then
I realized that part of my code was wrong and I fixed that part and my error was resolved
Regards,
H