Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created April 30, 2019 13:32
Show Gist options
  • Save jkotra/2b3d5344147bff9989b5896b071e476a to your computer and use it in GitHub Desktop.
Save jkotra/2b3d5344147bff9989b5896b071e476a to your computer and use it in GitHub Desktop.
today = total_x[-1].reshape(-1).tolist()
last_price = scaler.transform(infered['Open_Predicted'][-1].reshape(-1, 1))
today.append(last_price[0])
today = today[1:]
today = np.array(today).reshape(-1,60,1)
tomorrow = model.predict(today)
tomorrow = scaler.inverse_transform(tomorrow)[0]
print(tomorrow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment