You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out if there is a way to pick up where I left off with the bayesian_search_forecaster().
After I create a SQLite DB as described on Saving/Resuming Study with RDB Backend, I get the following error on a 2nd execution of the following function.
Hi @wheredoesyourmindgo
Thanks for using skforecast and reporting this error.
It seems there is a bug in the way we internally call optuna.create_study() within bayesian_search_forecaster(). We will try to fix this in the next release.
I'm trying to figure out if there is a way to pick up where I left off with the bayesian_search_forecaster().
After I create a SQLite DB as described on Saving/Resuming Study with RDB Backend, I get the following error on a 2nd execution of the following function.
Error:
File ~/.../lib/python3.8/site-packages/skforecast/model_selection/model_selection.py:1584, in _bayesian_search_optuna(forecaster, y, search_space, steps, metric, initial_train_size, fixed_train_size, gap, allow_incomplete_fold, exog, lags_grid, refit, n_trials, random_state, return_best, n_jobs, verbose, show_progress, kwargs_create_study, kwargs_study_optimize)
1581 params_list.append(trial.params)
1582 lags_list.append(lags)
-> 1584 for m, m_values in zip(metric, metric_values[i]):
1585 m_name = m if isinstance(m, str) else m.name
1586 metric_dict[m_name].append(m_values)
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: