This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create a new dataframe with only the Adj Close Column | |
data = goog_hist.filter(["Close"]) | |
#Convert the dataframe to a numpy array | |
dataset = data.values | |
#Get the number of rows to train the model on | |
training_data_len = math.ceil( len(dataset) *.8) #This is use to train 80% of the dataset | |
training_data_len |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment