AET icon indicating copy to clipboard operation
AET copied to clipboard

Error in find_coeffs function

Open 07Agarg opened this issue 4 years ago • 0 comments

res = np.dot(np.linalg.inv(A.T * A) * A.T, B)

What is the purpose of the above statement? It is giving an error: "numpy.linalg.linalg.LinAlgError: Singular matrix"

I tried using replacing np.linalg.inv with numpy.linalg.pinv. But still it is giving ValueError of shape inconsistency.

Thanks.

07Agarg avatar Feb 07 '21 11:02 07Agarg