Data Science, Linear Regression, Machine Learning, Python, Numpy.
them. The gradient_desc method takes in the current betas, X, y, and yhat and calculates the gradient of the loss function with respect to betas. It then updates the values of betas using gradient descent and returns the new values. The main method takes in X and y and initializes betas using the