Skip to content

Instantly share code, notes, and snippets.

@lylayang
Last active March 15, 2020 06:21
Show Gist options
  • Save lylayang/ad9c8601929e27bfeb19052515e44a21 to your computer and use it in GitHub Desktop.
Save lylayang/ad9c8601929e27bfeb19052515e44a21 to your computer and use it in GitHub Desktop.
def prediction_plot(testY, test_predict,look_back):
len_prediction=[x for x in range(len(testY)-look_back)]
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