Created
July 28, 2022 20:26
-
-
Save erykml/da648ec9442b8ef441a7e530b3bc83ff 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
model_1 = LinearRegression().fit(X_1.iloc[:TRAIN_END], | |
y.iloc[:TRAIN_END]) | |
results_df["model_1"] = model_1.predict(X_1) | |
results_df[["actuals", "model_1"]].plot(figsize=(16,4), | |
title="Fit using month dummies") | |
plt.axvline(date(2020, 1, 1), c="m", linestyle="--"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment