Spaces:
Running
Running
Commit
·
b5ca234
1
Parent(s):
57b2558
v1.1 release debug
Browse files
app.py
CHANGED
@@ -325,14 +325,16 @@ if (st.session_state.uploaded):
|
|
325 |
|
326 |
if (forecast_button or st.session_state.forecasted):
|
327 |
df = series_to_df_exogenous(series)
|
328 |
-
print(df) # debug
|
329 |
-
print(len(df)) # debug
|
330 |
n_periods = round(len(df) * 0.2)
|
|
|
331 |
|
332 |
train = train_test(df, n_periods)
|
333 |
training_y, test_y, test_y_series, training_X, test_X, future_X = train
|
334 |
train_test_model = test_fitting(df, training_X, training_y)
|
335 |
|
|
|
|
|
|
|
336 |
future_n_periods = forecast_period
|
337 |
fitted, confint = train_test_model.predict(X=test_X, n_periods=n_periods, return_conf_int=True)
|
338 |
index_of_fc = test_y_series.index
|
|
|
325 |
|
326 |
if (forecast_button or st.session_state.forecasted):
|
327 |
df = series_to_df_exogenous(series)
|
|
|
|
|
328 |
n_periods = round(len(df) * 0.2)
|
329 |
+
print(n_periods) # debug
|
330 |
|
331 |
train = train_test(df, n_periods)
|
332 |
training_y, test_y, test_y_series, training_X, test_X, future_X = train
|
333 |
train_test_model = test_fitting(df, training_X, training_y)
|
334 |
|
335 |
+
print(df) # debug
|
336 |
+
print(len(df)) # debug
|
337 |
+
|
338 |
future_n_periods = forecast_period
|
339 |
fitted, confint = train_test_model.predict(X=test_X, n_periods=n_periods, return_conf_int=True)
|
340 |
index_of_fc = test_y_series.index
|