Data Science, Machine Learning, 100daysofmlcode, 100daysofmlwriting.
this is: import numpy as np XTX = np.dot(X.T, X) + lambda*np.identity(X.shape[1) beta = np.dot(np.linag.inv(XTX), np.dot(X.T, y)) This approach implements what is known as the L2 norm. The L2 norm, or Euclidean norm, is one method for calculating the magnitude of a vector. For a simple 2D space, it