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

Questions about the dimensions of datasets #25

Open
QEASONT opened this issue Sep 26, 2021 · 6 comments
Open

Questions about the dimensions of datasets #25

QEASONT opened this issue Sep 26, 2021 · 6 comments

Comments

@QEASONT
Copy link

QEASONT commented Sep 26, 2021

I am trying to use Temporal_Graph_gen.py to process METR-LA.
6357191CBE7F0D7BFD52581B95012938
README said that in PEMS08 dataset, the shape is (Total_Time_Steps, Node_Number), however, when I load the PEMS08, the shape is (17856,170,3), Could you please tell me what does the third dimension means?
{FF0358DF-37BC-04CE-50DC-065F0181F55B}

@MengzhangLI
Copy link
Owner

Hi,

17856 is time step points, 170 is number of roads/ sensors and 3 is number of metric such as speed, volume and so on.

In traffic forecasting paper, many paper use more than one metric for forecasting, but they usually use 1 metric (i.e., speed) because of current widely used dataset such as METR-LA and PEMS-BAY only have information of speed.

You can checkout the dimension 3 and get the speed value of it. If I remember well, it is in [:, :, 0], you could check it out.

Best,

@1834399017
Copy link

我想请问一下,这是在Linus上跑的这部分嘛

@MengzhangLI
Copy link
Owner

我想请问一下,这是在Linus上跑的这部分嘛

嗯是的,用的学校的服务器。

@1834399017
Copy link

您好,我想一下,您在代码中设置的间隔时间是多久的呢?在哪里可以改变一下?还有在代码中似乎没有找到门控部分的代码,我在pems08中训练后与论文中的效果改进有点大,可能是什么原因呢?(因为没有服务器可用,03,04,07跑不起)希望您能帮我解决一下,万分感谢!

@MengzhangLI
Copy link
Owner

时间间隔等所有配置能改的都在config json里 https://github.com/MengzhangLI/STFGNN/blob/master/config/PEMS08/individual_3layer_12T.json

门空代码在这里:

data_time_axis = data_left * data_right

PEMS08结果差的原因我觉得不是我的代码问题,我在PEMS数据集的结果都是用这个repo的代码并且跑好了很多次.

@1834399017
Copy link

非常感谢您的回答!请问可以加一下您的联系方式嘛?我有一些问题想和您探讨一下,我得q1834399017,期待您的回复

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

3 participants