Week 2 Addn Assignment: Costs

The costs that are printed out for different learning rates are exactly the same. But the graph shows different costs. Can I correct this?

I’m not sure what you mean. You’ll notice that they pass print_cost = False in that section where they experiment with the learning rates, so you don’t see any cost values at all, unless you modified the code. Then they plot everything at the end.

I tried the experiment of setting print_cost = True in the call to model in that section and, exactly as one would expect from the graphs that are shown, the cost values are not the same with different learning rates.

Thanks for clarifying