C1_W1 Lab Query

The Optional lab has shown that the Cost versus iterations graph. What is the meaning of this graph and what does the x-axis means. This very confuse me. And also what is the start and end means in the graph title.

Hi,

I think you are asking about these graphs in Optional Lab: Gradient Descent for Linear Regression (Please provide the name of the optional lab next time)

It can take many iterations to train our model. At each iteration, we go through our samples once, and after each iteration, the cost will reduce. This graph tells us the cost at the end of each iteration so that we know how the cost is changing over the training process. x-axis is the number of iterations.

For this training, the process did a large number of iterations, and the start plot shows the first 100 iterations whereas the end plot shows the iterations after the first 1000 iterations. We make a separate end plot so that we can look closer to the small change in cost at the later iterations.

Hi!

The graphs are the value of the Cost vs the Number of Gradient Descent iterations (Number of times we run Gradient Descent)
It shows that the cost goes lower until the gradient reaches 0 and we have reached a minimum.
It is a good way to measure the progress of gradient descent.


Hope this helps!