C1W1 Lab04, why aren't the gradients perpendicular to the contour lines? (SOLVED)

Hello @eric11235 Eric,

I believe that is because our impression of the “right angle” is always based on that we have an 1:1 image aspect ratio.

Check this out:

(Below is a GIF animation)
Project001 (3)

(Below is an image)

The GIF shows how changing the aspect ratio “correct” our “right angle”. The code controlled the aspect ratio with the figure size and the ranges of w and b, so you may change those settings to make it 1:1 like what I have done below:

(Below is an image)


As you can see, (1) same range for both w and b, and (2) a square image.

Cheers,
Raymond

6 Likes