I believe that for question 8, I’ve correctly filled out all the required steps. However, I am seeing the following error:
Is there any advice?
I believe that for question 8, I’ve correctly filled out all the required steps. However, I am seeing the following error:
Is there any advice?
Hi @nmamoon ,
The assertion error is showing problem with the computation of dw. Please check no hard coding values are used in the model() function.
Hmm, I don’t believe I am using and hard-coded values. Here is my code:
{moderator edit - solution code removed}
Yes, you are hard-coding the learning rate, number of iterations and print flag, because you do not pass them when you call optimize
. That means you get the default values of those parameters as declared in the definition of optimize
, instead of the actual values passed in to the model
function at the top level.
That makes sense, thank you!