I am looking at the code for function compute_gradient_matrix inside utils file

lab_utils_multi.py. Can someone tell me what @ operator does in the following line

f_wb = X @ w + b (line number: 321)

I am looking at the code for function compute_gradient_matrix inside utils file

lab_utils_multi.py. Can someone tell me what @ operator does in the following line

f_wb = X @ w + b (line number: 321)

In this context, it’s for matrix multiplication. For further information, you can refer to this link: Python Matrices with NumPy and SciPy | Medium

It’s equivalent to np.matmul()

From the Python operator definitions: