Hello,
I’m a little confused on how setting print_cost = False/True works. For example in Exercise 6 (Optimize function), in the function definition we have def optimize(…,print_cost = False):
but then inside the function we have
if i % 100 == 0:
costs.append(cost)
# Print the cost every 100 training iterations
if print_cost:
print ("Cost after iteration %i: %f" %(i, cost))
My question is when is print_cost reset to True so that the print() function knows to print the cost for every 100 training iterations?
Thank you,
Nay