Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/5839eb4f84f56d0a131bc316a6b4dded to your computer and use it in GitHub Desktop.
Save Tathagatd96/5839eb4f84f56d0a131bc316a6b4dded to your computer and use it in GitHub Desktop.
plt.title("TESTING THE MODEL")
#TRAINING INSTANCE
plt.plot(train_inst[:-1],np.sin(train_inst[:-1]),"bo",markersize=15,alpha=0.5,label="TRAINING INST")
#TARGET TO PREDICT
plt.plot(train_inst[1:],np.sin(train_inst[1:]),"ko",markersize=8,label="TARGET")
#MODEL PREDCTION
plt.plot(train_inst[1:],y_pred[0,:,0],"r.",markersize=7,label="PREDICTIONS")
plt.xlabel("TIME")
plt.legend()
plt.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment