Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def train_predict_wrapper(ticker, start_date, end_date, prediction_days):
|
|
21 |
# Prepare data for prediction
|
22 |
last_timestamp = data.index[-1]
|
23 |
future_timestamps = pd.date_range(start=pd.to_datetime(last_timestamp, unit='s'),
|
24 |
-
periods=prediction_days
|
25 |
future_timestamps = (future_timestamps - pd.Timestamp("1970-01-01")) // pd.Timedelta('1s')
|
26 |
X_future = future_timestamps.values.reshape(-1, 1)
|
27 |
|
|
|
21 |
# Prepare data for prediction
|
22 |
last_timestamp = data.index[-1]
|
23 |
future_timestamps = pd.date_range(start=pd.to_datetime(last_timestamp, unit='s'),
|
24 |
+
periods=prediction_days, freq='D')
|
25 |
future_timestamps = (future_timestamps - pd.Timestamp("1970-01-01")) // pd.Timedelta('1s')
|
26 |
X_future = future_timestamps.values.reshape(-1, 1)
|
27 |
|