Hi team,
The code you have provided is working on train data set and giving me good accuracy. Now if I use the theta obtained from the training dataset and using it for test to predict the output and calculate the r2 score then I am facing issue with the calculation of r2 since test and train has different shape and hence test data is throwing error stating broadcasting of array values are not possible. Kindly help me through the code so that a generic linear regression with multivariate can be used on more Kaggle dataset.