This error means that the specific value is wrong or that the whole array is wrong and that the answer shoud the that value?
The answers are both 4 x 1 arrays and all values at each position must be equal. Also notice that the error message is talking about the value of w, the weight vector, not dw.
Just because your previous functions are correct does not mean that you are calling them correctly from model
. The most common type of mistake is to “hard-code” some of the parameters that are being passed to optimize
when you call it from model
.
Thanks, it made a mistake calling "optimize ". Now everything is good :D.
1 Like
It’s great to hear that you were able to find the solution under your own power, just based on that hint. Nice work!