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

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