Skip to content

Commit

Permalink
use assert_frame_equal in df checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez committed Mar 25, 2024
1 parent 5a4ee44 commit f20053e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbs/timegpt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1683,11 +1683,11 @@
"test_warns(\n",
" lambda: timegpt.forecast(df_test, finetune_steps=2, h=12, model=\"timegpt-1-long-horizon\"),\n",
")\n",
"test_eq(\n",
"pd.testing.assert_frame_equal(\n",
" timegpt.forecast(df_test, h=12, model=\"timegpt-1\"),\n",
" timegpt.forecast(df_test, h=12),\n",
")\n",
"test_eq(\n",
"pd.testing.assert_frame_equal(\n",
" timegpt.forecast(df_test, h=12, model=\"timegpt-1-long-horizon\"),\n",
" timegpt.forecast(df_test, h=12, model=\"long-horizon\"),\n",
")"
Expand Down

0 comments on commit f20053e

Please sign in to comment.