I need explanation about line of code in the optimization methods assignment

in optimization methods assignment
can someone please explain for me this line
parameters, grads, learning_rate = update_parameters_with_gd_test_case()
thanks

This line tests your code for update_parameters_with_gd.

1 Like

it basically updates your parameters with applied gradient descent and learning rate of your choosen algorithm of training your model

1 Like

As Saif and Deepti have mentioned, that is a function that is provided for you as part of the testing for the functions you have written here. It works this way in all the assignments: they supply test code for you. If you want to examine the source for the test functions to understand how they work, just click “File → Open” From the notebook and have a look at the various python files that are included with the notebook. You can also examine the “import” cell, which is the first code cell in the notebook to see which ones are imported.

There was a topic about this on the DLS FAQ Thread as well.

1 Like