C2W4 ,please help me

how to fix this problem,please help me,thanks!!

C2W4_Assignment.ipynb (60.6 KB)


You should be posting in the relevant course section, the error says that the shape of what you are trying to convert to categorical is not right. Check the fuction at tensorflow, what kind of shapes should be as input!

1 Like

Whenever I see something like index 24 is out of bounds…with size 24 I think it is an off-by-one or 0 vs 1 - based index problem. I took a quick look here and don’t see the problem, but likely something related to that.

1 Like