Skip to content

Commit

Permalink
enh: improve short series error message (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Oct 17, 2024
1 parent 3cb41d7 commit 3171b72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nbs/src/nixtla_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@
" min_size = ufp.counts_by_id(df, id_col)['counts'].min()\n",
" if min_size < model_input_size + model_horizon:\n",
" raise ValueError(\n",
" 'Your time series data is too short '\n",
" 'Please make sure that your each serie contains '\n",
" 'Some series are too short. '\n",
" 'Please make sure that each serie contains '\n",
" f'at least {model_input_size + model_horizon} observations.'\n",
" )\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions nixtla/nixtla_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ def _validate_input_size(
min_size = ufp.counts_by_id(df, id_col)["counts"].min()
if min_size < model_input_size + model_horizon:
raise ValueError(
"Your time series data is too short "
"Please make sure that your each serie contains "
"Some series are too short. "
"Please make sure that each serie contains "
f"at least {model_input_size + model_horizon} observations."
)

Expand Down

0 comments on commit 3171b72

Please sign in to comment.