Spaces:
Runtime error
Runtime error
TuanScientist
commited on
Commit
•
1f4a8f4
1
Parent(s):
a1a81c6
Update app.py
Browse files
app.py
CHANGED
@@ -15,15 +15,15 @@ df.dropna(inplace=True)
|
|
15 |
|
16 |
m = NeuralProphet(n_forecasts=3,
|
17 |
n_lags=12,
|
18 |
-
changepoints_range=
|
19 |
-
n_changepoints=
|
20 |
seasonality_mode="multiplicative", drop_missing=True,
|
21 |
-
learning_rate=0.
|
22 |
)
|
23 |
|
24 |
m.fit(df, freq='M')
|
25 |
|
26 |
-
future = m.make_future_dataframe(df, periods=
|
27 |
forecast = m.predict(future)
|
28 |
|
29 |
def predict_vn_index(option=None):
|
|
|
15 |
|
16 |
m = NeuralProphet(n_forecasts=3,
|
17 |
n_lags=12,
|
18 |
+
changepoints_range=9, num_hidden_layers=6, daily_seasonality= True, weekly_seasonality = True, yearly_seasonality = True, ar_reg=True,
|
19 |
+
n_changepoints=250, trend_reg_threshold=True, d_hidden=9, global_normalization=True, global_time_normalization=True, seasonality_reg=1, unknown_data_normalization=True,
|
20 |
seasonality_mode="multiplicative", drop_missing=True,
|
21 |
+
learning_rate=0.1
|
22 |
)
|
23 |
|
24 |
m.fit(df, freq='M')
|
25 |
|
26 |
+
future = m.make_future_dataframe(df, periods=3, n_historic_predictions=True)
|
27 |
forecast = m.predict(future)
|
28 |
|
29 |
def predict_vn_index(option=None):
|