Skip to content

Instantly share code, notes, and snippets.

@lylayang
Created March 15, 2020 07:38
Show Gist options
  • Save lylayang/5738564728ee1dd3c908597596519b77 to your computer and use it in GitHub Desktop.
Save lylayang/5738564728ee1dd3c908597596519b77 to your computer and use it in GitHub Desktop.
#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