Skip to content

Instantly share code, notes, and snippets.

@kiddojazz
Created January 15, 2023 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiddojazz/e58a4bfaf18e5b59dc35d1061a98a30b to your computer and use it in GitHub Desktop.
Save kiddojazz/e58a4bfaf18e5b59dc35d1061a98a30b to your computer and use it in GitHub Desktop.
#Create the testing data set
#Create a new array containing scaled values from index 1543 to 2003
test_data = scaled_data[training_data_len - 60: , :]
#Create the data sets x_test and y_test
x_test = []
y_test = dataset[training_data_len:, :]
for i in range(60, len(test_data)):
    x_test.append(test_data[i-60:i, 0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment