def linear_regression(X, y, weight, alpha, iterations):