from sklearn.linear_model import LinearRegression regression_model = LinearRegression() # Fit the data(train the model) regression_model.fit(x, y)