1import tensorflow as tf
2from tensorflow.keras.models import Sequential
3from tensorflow.keras.layers import LSTM, Dense, Dropout, Bidirectional
4from tensorflow.keras.callbacks import ModelCheckpoint, TensorBoard
5from sklearn import preprocessing
6from sklearn.model_selection import train_test_split
7from sklearn.metrics import accuracy_score
8from yahoo_fin import stock_info as si
9from collections import deque
10
11import numpy as np
12import pandas as pd
13import matplotlib.pyplot as plt
14import time
15import os
16import random