Step 2b - Computing the Loss Surface

Learn how the loss can be computed for all possible values in a given range as well as how it can be visually represented.

Loss surface

We have just computed the loss (2.74) corresponding to our randomly initialized parameters (b = 0.49 and w = -0.13). What if we did the same for all possible values of b and w? Well, not all possible values but all combinations of evenly spaced values in a given range like the example shown in the code below:

Get hands-on with 1200+ tech skills courses.