Data Science, Linear Regression, Machine Learning, Python, Numpy.
the betas with random values and returns both X and betas. The yhat method takes in X and betas and returns the predicted values of y by multiplying X with the transpose of betas. The loss method takes in the predicted values yhat and the true values y and calculates the mean squared error between