C1, week2, ex8 assignment new wrong output

Hello, I’m facing this error, I tried to search about this problem here, but there is no solution.
and I didn’t hardcode any parameters, + deleted the hardcoded parameters in the optimize function to make sure that it is not the problem.

Note: nobody shared the same wrong output as mine:
Wrong values for d[‘w’]. [[0.]
[0.]
[0.]
[0.]] != [[ 0.08639757]
[-0.08231268]
[-0.11798927]
[ 0.12866053]]

ok, I found the solution :smiley:
I was calling predict(params[“w”], …)
but I had to
w=params[“w”]
then use this w,b in the parameters
but I don’t know why? it is the same.
I want to know why it didn’t work before assigning them separately.