Hi there,
When I try to vectorlize the Loss function, it shows following problem, is there anyone can help me figure out this issue? Thanks!
Hi there,
When I try to vectorlize the Loss function, it shows following problem, is there anyone can help me figure out this issue? Thanks!
The shapes of Y and np.log(A) are not right so that matrix multiplication can happen. Maybe you need to transpose one of them. Check their shapes.
Hello, Zihan.
Welcome to the community.
Yes, Mentor Gent Spah is right. For dot product to work, the inner dimensions should match. The value error indicates that there is a dimensional error. You need to do an analysis to debug it.