C1_W1_Lab02_Model_Representation: plt.plot line problem

while doing the subject lab, i’ve a question:

when we use plt.plot(x_train,y_train), this command fits the line very well… we didn’t provide any value to w and b why we get a best fit line…? if we can get best fit line by using plt.plot(x_train,y_train) then why there is a need to try for different values for w and b…?

Hi @onlyehtisham ,

Could you specify which part of the lab you are referring to?

It’s just an example. We haven’t learned how to get the best w and b values yet.
Plots aren’t the method we’ll use. Those are just illustrations.