Spaces:
Runtime error
Runtime error
Commit
·
4034a36
1
Parent(s):
4766cef
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ if uploaded_file is not None:
|
|
| 64 |
st.success('Done!')
|
| 65 |
|
| 66 |
st.write(forecasts)
|
| 67 |
-
forecasts_df = pd.DataFrame({'ds':pd.date_range(start=
|
| 68 |
'mean':forecasts, 'low_ci_05':ci_05[:,0], 'low_ci_10':ci_10[:,0],
|
| 69 |
'hi_ci_05':ci_05[:,1], 'hi_ci_10':ci_10[:,1]})
|
| 70 |
csv = convert_df(forecasts)
|
|
@@ -88,8 +88,8 @@ if uploaded_file is not None:
|
|
| 88 |
),
|
| 89 |
go.Scatter(
|
| 90 |
name=f'auto_arima_season_length-{seasonality}_mean',
|
| 91 |
-
x=
|
| 92 |
-
y=
|
| 93 |
mode='lines',
|
| 94 |
marker=dict(color='green'),
|
| 95 |
line=dict(width=1),
|
|
|
|
| 64 |
st.success('Done!')
|
| 65 |
|
| 66 |
st.write(forecasts)
|
| 67 |
+
forecasts_df = pd.DataFrame({'ds':pd.date_range(start=series_train['ds']+pd.to_timedelta(horizons, units=freq), periods=horizons, freq=freq),
|
| 68 |
'mean':forecasts, 'low_ci_05':ci_05[:,0], 'low_ci_10':ci_10[:,0],
|
| 69 |
'hi_ci_05':ci_05[:,1], 'hi_ci_10':ci_10[:,1]})
|
| 70 |
csv = convert_df(forecasts)
|
|
|
|
| 88 |
),
|
| 89 |
go.Scatter(
|
| 90 |
name=f'auto_arima_season_length-{seasonality}_mean',
|
| 91 |
+
x=forecasts_df['ds'],
|
| 92 |
+
y=forecasts_df['mean'],
|
| 93 |
mode='lines',
|
| 94 |
marker=dict(color='green'),
|
| 95 |
line=dict(width=1),
|