C1_W1_Lab04_Gradient_Descent_Soln, w & b values

This is from Week 1, Optional Lab 4

In this line

Where in the code does it define the values of w and b? I was wondering how it is able to generate this graph.

Ahh, now I get it, plt_gradients is from the imported library, my bad

1 Like

‘w’ and ‘b’ are defined via the parameters that are passed when the compute_cost() function is called.