Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于结果的范围 #46

Closed
Aaron-yhj opened this issue May 21, 2023 · 2 comments
Closed

关于结果的范围 #46

Aaron-yhj opened this issue May 21, 2023 · 2 comments

Comments

@Aaron-yhj
Copy link

尊敬的作者您好!非常感谢您所提出的杰出的模型。在将PatchTST作用于自己的数据集时,发现模型输出的数值范围与数据集中的数据值域范围有很大出入,经过阅读代码发现在Dataset中有scale默认为True。请问:如何将经过scale的数据的输出缩放为原本数据的值域范围呢?期待您的回答。

@yuqinie98
Copy link
Owner

Hi @Aaron-yhj , I understand your thought. We normalize the output to be consistent with previous papers. You could use this function to transfer the signal back to the original scale: https://github.com/yuqinie98/PatchTST/blob/main/PatchTST_supervised/data_provider/data_loader.py#LL289C1-L290C1.

@Aaron-yhj
Copy link
Author

Hi @Aaron-yhj , I understand your thought. We normalize the output to be consistent with previous papers. You could use this function to transfer the signal back to the original scale: https://github.com/yuqinie98/PatchTST/blob/main/PatchTST_supervised/data_provider/data_loader.py#LL289C1-L290C1.

Thanks for your reply, it's very helpful for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants