Created
March 15, 2020 07:38
-
-
Save lylayang/5738564728ee1dd3c908597596519b77 to your computer and use it in GitHub Desktop.
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
#Split data set into testing dataset and train dataset | |
train_size = 900 | |
train, test =df1.values[0:train_size,:],df1.values[train_size:len(df1.values),:] | |
# setup look_back window | |
look_back = 30 | |
#convert dataset into right shape in order to input into the DNN | |
trainX, trainY = convert2matrix(train, look_back) | |
testX, testY = convert2matrix(test, look_back) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment