Spaces:
Runtime error
Runtime error
Commit
·
6693841
1
Parent(s):
7f93530
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,13 +130,14 @@ ds = np.array(ds)
|
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
-
predictions = model.predict(ds)
|
| 134 |
-
predictions
|
| 135 |
-
p = predictions[0][0]
|
| 136 |
-
print(p)
|
| 137 |
-
a = np.array([0,0,0,p,0,0,0,0])
|
| 138 |
-
|
| 139 |
-
|
|
|
|
| 140 |
|
| 141 |
|
| 142 |
final_prediction = a[-1][3]
|
|
|
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
+
#predictions = model.predict(ds)
|
| 134 |
+
#predictions
|
| 135 |
+
#p = predictions[0][0]
|
| 136 |
+
#print(p)
|
| 137 |
+
#a = np.array([0,0,0,p,0,0,0,0])
|
| 138 |
+
#a = scaler.inverse_transform(a.reshape(1,-1))
|
| 139 |
+
|
| 140 |
+
a = scaler.inverse_transform(model.predict(ds).reshape(-1, 1))
|
| 141 |
|
| 142 |
|
| 143 |
final_prediction = a[-1][3]
|