Skip to content

Commit

Permalink
fix: error in BTTF testing case;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Sep 21, 2023
1 parent 18945e8 commit e71d1f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/forecasting/bttf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class TestBTTF(unittest.TestCase):
@pytest.mark.xdist_group(name="forecasting-bttf")
def test_0_forecasting(self):
predictions = self.bttf.forecast(TEST_SET)
logger.info(f"prediction shape: {predictions.shape}")
mae = cal_mae(predictions, TEST_SET_INTACT)
mae = cal_mae(predictions, TEST_SET_INTACT["X"][:, -N_PRED_STEP:])
logger.info(f"prediction MAE: {mae}")


Expand Down
2 changes: 1 addition & 1 deletion tests/forecasting/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
TRAIN_SET = {"X": DATA["train_X"]}
VAL_SET = {"X": DATA["val_X"]}
TEST_SET = {"X": DATA["test_X"][:, :-N_PRED_STEP]}
TEST_SET_INTACT = {"X": DATA["test_X"]}
TEST_SET_INTACT = {"X": DATA["test_X_intact"]}

RESULT_SAVING_DIR_FOR_CLASSIFICATION = os.path.join(RESULT_SAVING_DIR, "forecasting")

0 comments on commit e71d1f6

Please sign in to comment.