Neural Networks and Deep Learning, Week 2, Exercise - dw is not matching

{moderator edit - solution code removed}

Getting afore error even though all module level test cases are passing.

The problem is that you are “hard-coding” the values of the learning rate and number of iterations and the print flag, when you call optimize from model. In other words, it doesn’t matter what values are passed in at the top level of the model function: the results will always be the same.

Note: you filed this question under “General Discussion”. I moved it for you to DLS - Course 1 (by using the “edit pencil” on the title).