Multiple Linear Regression using Python
www.analyticsvidhya.com › blog › 2022Mar 11, 2022 · linreg=LinearRegression () linreg.fit (x_train,y_train) Predict the Test Results Use the predict method to predict the results, then pass the independent variables into it and view the results. It will give the array with all the values in it. y_pred=linreg.predict (x_test) y_pred Source: Author Evaluate the Model