BUAABIGSCity / PDFormer

[AAAI2023] A PyTorch implementation of PDFormer: Propagation Delay-aware Dynamic Long-range Transformer for Traffic Flow Prediction.
MIT License
209 stars 35 forks source link

代码问题 #36

Open Jia-hn opened 10 months ago

Jia-hn commented 10 months ago

pdformer_dataset中的这一行代码: self.sh_mx[self.sh_mx > 0] = 1 是否会将inf变为1 这样的话,没有连接的两个节点形成连接

Jia-hn commented 10 months ago

因为这行代码 self.init_weight_inf_or_zero = self.config.get('init_weight_inf_or_zero', 'inf') 将adj_mx的两个无连接节点的weight设置为了inf

aptx1231 commented 8 months ago

@NickHan-cs

NickHan-cs commented 8 months ago

在数据集的config.json中,我们都将init_weight_inf_or_zero的值设定为"zero"

LayCYL commented 4 months ago

您好,我想问一下哪部分是时间延迟感知特征转换模块的代码吗