UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names
model_reg.fit(scaled_x_train.values, y_train[vp].values) data_pred = model_reg.predict(scaled_x_test.values)
Here is what the above code is Doing:
1. We are creating a linear regression model.
2. We are fitting the model with the training data.
3. We are predicting the values of the test data.