Skip to content

Instantly share code, notes, and snippets.

@lylayang
Last active March 15, 2020 08:05
Show Gist options
  • Save lylayang/8414f653b4a4d45425650c7977eee3f4 to your computer and use it in GitHub Desktop.
Save lylayang/8414f653b4a4d45425650c7977eee3f4 to your computer and use it in GitHub Desktop.
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