For the example of Linear Regression, how do you train a dat…

For the example of Linear Regression, how do you train a dataset applying Linear Regression? Let’s label Linear Regression as “LR”.   X_train & Y_train are training dataset and corresponding label  X_test & Y_test are testing dataset and corresponding label  

Write a function rmse that takes in truth and prediction val…

Write a function rmse that takes in truth and prediction values and returns the root-mean-squared error. Use sklearn’s ‘mean squared error’ class. All variables are as per assignment   A. from sklearn.metrics import mean_squared_error def rmse(ytrue):     return np.sqrt(mean_squared_error(ytrue, ypredicted))   B. from sklearn.metrics import mean_squared_error def rmse(ytrue, ypredicted):     return np.sqrt(mean_squared_error(ypredicted))   C. from sklearn.metrics import mean_squared_error def rmse(ytrue, ypredicted):     return np.sqrt(mean_squared_error(ytrue, ypredicted))   D. from sklearn.metrics import mean_squared_error def rmse(ypredicted):     return np.sqrt(mean_squared_error(ytrue, ypredicted))