Week 3 Lab Issues

Please help me with this practice lab:

Hi @DipanshuSingh

w and X in your code are arrays and you cannot just multiply them using *, try using z = np.dot(X, w) + b instead.

In loss calculation you are using np.dot which is incorrect (this function is meant for matrix multiplication). Just try simple multiplication (*).

Hope it helps! Feel free to ask if you need further assistance.

2 Likes

Please do not share your code for the assignments. That is not allowed by the Code of Conduct.

If a mentor needs to see your code, we will contact you by personal message and provide instructions.

1 Like