(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)
I have a problem when I execute the code in the picture , I don’t know when the error is
(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)
I have a problem when I execute the code in the picture , I don’t know when the error is
You have ignored these instructions, present at the start of the assignment (the second bullet):
Hope this clears it,
Mubsi
Did you try not transposing w?
I think is because you use the *, it used for elementwise multiplication, and u want to do the matrix multiplication, use insted np.dot() or np.matmul()
Thank you so much for this important information .
it works ?
Yes , Thank you Mr. Mohamed -Amine .
Excuse me , when Iam Writing this new code I encountered a problem in the execution , Idon’t what’s the error .
(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)
Please know, it is against the honour code of this community to share your code publicly, even if it is incorrect. Always start by sharing the error you get, just as you did above (before you included solution code).
Another thing I have noticed is that you edit your posts to add solution code, please stop doing that. As mentioned, it is against the honour code to share it.
Share with us the error that you are getting.
Thanks,
Mubsi
As for the code you shared in the screenshot (which I have removed as sharing it publicly is against the honour code of this community), I noticed two things wrong.
dim-X_train
. What is this ? As per the instructions of the notebook, you should not create new variables, yous should only work with the ones provided to you. Please look at the function parameters.w = [‘w’]
, this is not the correct way to retrieve w
or b
from params(w = [‘w’]
means you just created a list w
with value w
in it. )
Excuse me,I apologize for this behavior