Skip to content

Instantly share code, notes, and snippets.

Created Apr 29, 2021
What would you like to do?
from sklearn.linear_model import LinearRegression
model = LinearRegression(), ytrain)
ypred = model.predict(xtest)
data = pd.DataFrame(data={"Predicted Profit": ypred.flatten()})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment