# train the model (fit data) regression_model.fit(x, y) y_predicted = regression_model.predict(x)