-
-
Save amankharwal/21497d4350f3a827e9f3ec34486672b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.linear_model import LinearRegression | |
model = LinearRegression() | |
model.fit(xtrain, ytrain) | |
ypred = model.predict(xtest) | |
data = pd.DataFrame(data={"Predicted Profit": ypred.flatten()}) | |
print(data.head()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment