All my tests have passed up until exercise 8, the model. It does not approve the “w” outcome of the model. Apparently the outcome of my model is different that what is expected.
It means your logic in the model function itself is wrong. Just because your previous functions are correct doesn’t prove anything about your model logic: a perfectly correct function will produce bad results if you pass it bad arguments, right?
The most common errors are:
referencing global variables instead of the parameters passed to model.
hard-coding some of the parameters when you call optimize from model. E.g. hard-coding the learning rate or number of iterations, thus ignoring what is actually being requested for those parameters.