Hi , My functions are all working , but when it comes to the last function (the model function) ,
it throws me an error 'Wrong values for d[‘w’]. [[ 0.14449502]
[-0.1429235 ]
[-0.19867517]
[ 0.21265053]] != [[ 0.08639757]
[-0.08231268]
[-0.11798927]
[ 0.12866053]] ’
i really don’t know why can anyone please help me !
One thing to check is to make sure you did not hard-code any of the parameters that you passed to optimize
when you call that from model
. There should be no equal signs in the parameter list, right? If there are, that means you are ignoring the actual values being passed in at the top level.
Also note that if you omit the learning rate and number of iterations when you call optimize
from model
, that is another form of “hard-coding”: it means you’ll always use the defaults that are declared in the definition of the optimize
function. But what if the test case passes different values?
2 Likes
Thank you For your Help
This right here!!! THANK YOU