Does warm start take more time to predict? (using weekly data)
- Dominant language
- Python
- Stars
- 20.4k
- Forks
- 4.6k
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 1
Description
Working on weekly data to predict for the next 1 week and I observed that warm-start takes more time to predict (and even fitting at times).? Is it normal or something to do with the code or data?
with open('serialized_model.json', 'r') as fin:
m1 = model_from_json(json.load(fin))
m2 = Prophet(weekly_seasonality=True, yearly_seasonality='auto', n_changepoints=30,
daily_seasonality=True, seasonality_mode = 'multiplicative', changepoint_prior_scale=0.1, changepoint_range= 0.6)
m2.fit(train_df, init=stan_init(m1))
future = m2.make_future_dataframe(periods=1, freq = "W")
forecast = m2.predict(future)
res = forecast.tail(1).yhat.values[0]
#out.append(res)
train_df = train_df.append(df.iloc[count+106])
m2.fit_kwargs['init']['delta'] = m2.fit_kwargs['init']['delta'].tolist()
m2.fit_kwargs['init']['beta'] = m2.fit_kwargs['init']['beta'].tolist()
with open('serialized_model.json', 'w') as fout:
json.dump(model_to_json(m2), fout)
Contributor guide
Assessment
This issue has not been assessed yet.