Week 2, Exercise 8: Wrong values for d['w']

Hi everyone,
I’m getting this error for Exercise 8 of Week 2 (implementing the model() function) even though my code passed all previous tests. Could someone please explain what I could have done wrong? Thanks in advance!

I figured it out. Passed in incorrect parameters to the optimize() function.

3 Likes

I am having the exact same problem. Could you tell me which parameter was wrong cause I cannot seem to find it

The common mistake is to hard code some parameters.