mdified
Browse files
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)
|