fit model stuck in cross_validation
- Dominant language
- Python
- Stars
- 20.4k
- Forks
- 4.6k
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 1
Description
A bug occurred when I used automatic parameter training,When df is input cross_validation ,the fit process unresponsive
I can only forcibly stop the program, but I didn't find any errors,stuck in “ df_cv”row

code:
def prophetModelEvaluation(predictStartDate, df, all_params):
rmses = []
for params in all_params:
model = Prophet(**params)
model.add_seasonality(name='weekly', period=7, fourier_order=4, prior_scale=0.1)
model.fit(df)
dateTime_p = datetime.datetime.strptime(predictStartDate, '%Y-%m-%d')
cutoffs = dateTime_p - datetime.timedelta(days=30)
cutoffs = pd.to_datetime([cutoffs])
df_cv = cross_validation(model, cutoffs=cutoffs, horizon='30 days', parallel="processes")
df_p = performance_metrics(df_cv, rolling_window=1)
rmses.append(df_p['rmse'].values[0])
print(rmses)
best_params = all_params[np.argmin(rmses)]
print(best_params)
pass
Contributor guide
Assessment
This issue has not been assessed yet.