-
Notifications
You must be signed in to change notification settings - Fork 6
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
数据维度问题 #2
Comments
注释掉第三维即可 |
|
发布的数据集确实没有第三个维度的数据,因为这个维度的数据经过我们检查在某些月份存在部分缺失,因此就没有提供。如果只是要预测速度数据的话,要解决这个问题最简单的方法就是可以把速度维度repeat3次。 |
论文中的输入数据x_i维度为(1260 * 2), 但在implementation detail小节将其重塑为36 * 36 * 2,reshape之后是1296 * 2, 和1260个顶点似乎对不上。我想请问数据维度这个36, 36, 2的数据维度分别代表的是什么?或者我可能漏掉了哪些信息? |
1260是节点数,然后用0填充到1296再reshape,2个维度分别是速度数据和拥挤程度数据 |
你好,是否可以提供下 有关包含第三个维度“流量”的 完整的数据集 |
数据集中没有流量数据,只有速度和拥挤程度,第三个维度原本是通行时间,但是这个维度缺失比较严重就没放出来 |
class TrafficBase(Dataset):
def init(self,
data_root,
txt_file,
size = None,
):
self.data_root = data_root
self.data_paths = txt_file
with open(self.data_paths, "r") as f:
self.image_paths = f.read().splitlines()
self._length = len(self.image_paths)
self.size = size
此函数中:
traffic_npy[:,:,0] = (traffic_npy[:,:,0] / 5.0).astype(np.float32)
traffic_npy[:,:,1] = (traffic_npy[:,:,1] / 150.0).astype(np.float32)
traffic_npy[:,:,2] = (traffic_npy[:,:,2] / 3600.0).astype(np.float32)
显示需要处理数据大小为[:,:,3]的数据。根据通信作者提供的数据集,.npy中的数据大小为[:,:,2]。请问第三维数据是什么?提供的代码或数据是否有误?
The text was updated successfully, but these errors were encountered: