8000 Not Using the Entire Test Dataset Results in Abnormal Metrics · Issue #129 · yuqinie98/PatchTST · GitHub
[go: up one dir, main page]

Skip to content
8000

Not Using the Entire Test Dataset Results in Abnormal Metrics #129

Open

Description

@Zian-Xu

In PatchTST_supervised\data_provider\data_factory.py, at line 17:

    if flag == 'test':
        shuffle_flag = False
        drop_last = True
        batch_size = args.batch_size
        freq = args.freq

Take the illness dataset as an example. According to the dataset split method, the test set contains 170 samples.

However, due to the setting batch_size = args.batch_size, which is set to batch_size=16 in illness.sh, and drop_last = True, the last 10 samples in the test set are excluded from the evaluation. This leads to abnormal test metrics.

For example, in my reproduced results, the evaluation metrics are significantly inflated:

  • Metrics excluding the last 10 samples: mse:1.389, mae:0.766, rse:0.569
  • Metrics including the last 10 samples: mse:1.945, mae:0.855, rse:0.674

Could you please clarify the rationale behind this setting? Thank you very much.

Activity

  1. HariniPersonal123 commented on Mar 26, 2025

    @HariniPersonal123

    Hi @Zian-Xu - For the illness.sh, did you have to change any of the sequence length or other parameters to get the metrics that you have stated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0