Victorlopo21 commited on
Commit
6693841
·
1 Parent(s): 7f93530

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
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
- a = scaler.inverse_transform(a.reshape(1,-1))
 
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]