rasa0704 commited on
Commit
7a02452
·
1 Parent(s): 4c63c89
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -75,9 +75,14 @@ df_final = scaler.fit_transform(df_final)
75
  x_test = []
76
  y_test = []
77
 
78
- for i in range(100,df_final.shape[0]):
79
  x_test.append(df_final[i-100:i])
 
 
 
 
80
  y_test.append(df_final[i,0])
 
81
  x_test, y_test = np.array(x_test), np.array(y_test)
82
 
83
  y_pred = model.predict(x_test)
 
75
  x_test = []
76
  y_test = []
77
 
78
+ for i in range(100,(int(df_final.shape[0])+1) ):
79
  x_test.append(df_final[i-100:i])
80
+
81
+
82
+ for i in range(100,df_final.shape[0]):
83
+ # x_test.append(df_final[i-100:i])
84
  y_test.append(df_final[i,0])
85
+
86
  x_test, y_test = np.array(x_test), np.array(y_test)
87
 
88
  y_pred = model.predict(x_test)