Last active
March 15, 2020 08:05
-
-
Save lylayang/8414f653b4a4d45425650c7977eee3f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def prediction_plot(testY, test_predict): | |
len_prediction=[x for x in range(len(testY))] | |
plt.figure(figsize=(8,4)) | |
plt.plot(len_prediction, testY[:l], marker='.', label="actual") | |
plt.plot(len_prediction, test_predict[:l], 'r', label="prediction") | |
plt.tight_layout() | |
sns.despine(top=True) | |
plt.subplots_adjust(left=0.07) | |
plt.ylabel('Ads Daily Spend', size=15) | |
plt.xlabel('Time step', size=15) | |
plt.legend(fontsize=15) | |
plt.show(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment