I am getting the wrong. values when I try to test my model.
Everything else seems to work fine.
AssertionError: Wrong values for d[‘w’]. [[ 0.14449502]
[-0.1429235 ]
[-0.19867517]
[ 0.21265053]] != [[ 0.08639757]
[-0.08231268]
[-0.11798927]
[ 0.12866053]]
Maybe you are calling the Optimize
function without number of iterations
and learning rate
. So, it used the default one. However, the test function runs with different values. You have to do your code in a manner that accepts any value of these arguments.
1 Like
Thank you for that suggestion. I will check that.
Exactly my mistake… just cut and pasted the call to optimize with the default parameters. Thank you very much.
1 Like