Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jasminerienecker committed Aug 13, 2024
1 parent 07c28f9 commit 92ce785
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nbs/core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2276,11 +2276,10 @@
"futr_df = AirPassengersPanel_test[AirPassengersPanel_test['unique_id'] == 'Airline2'].drop(columns='unique_id')\n",
"\n",
"pred_iterative = nf.predict(df=pred_df, futr_df=futr_df)\n",
"pred_airline2 = pred_dataframe[pred_dataframe['unique_id'] == 'Airline2']\n",
"pred_airline2 = pred_dataframe[pred_dataframe['id'] == 'Airline2']\n",
"test_eq(pred_iterative['ds'], pred_airline2['ds'])\n",
"np.testing.assert_allclose(pred_iterative['NHITS'], pred_airline2['NHITS'], rtol=0, atol=1)\n",
"np.testing.assert_allclose(pred_iterative['AutoMLP'], pred_airline2['AutoMLP'], rtol=0, atol=1)\n",
"np.testing.assert_allclose(pred_iterative['Autoformer'], pred_airline2['Autoformer'], rtol=0, atol=1)\n",
"\n",
"# remove id columns to not impact future tests\n",
"AirPassengersPanel_train = AirPassengersPanel_train.drop(columns='id')\n",
Expand Down

0 comments on commit 92ce785

Please sign in to comment.