Comments (6)
你好,关于这个问题主要考虑到PEMSD4数据集的特殊性,1是它本身包含交通速度流量和占有率3维数据,而一般的模型则适用于跑其中一维数据,不适合全部数据一起跑。这个可以从PEMSD4/config.json里边的data_col
参数进行配置(我们建议您设置data_col: traffic_speed
这样再进行实验),选择你想要跑哪一维的数据,2这个数据集的图结构中存在入度为0节点。
from bigscity-libcity.
另外,针对您说的4个模型,
对于STMGAT模型,他就是由于图结构的问题报错的,您可以在代码libcity/model/traffic_speed_prediction/STMGAT.py
第111行的g.add_edges(src, dst)
后边加上g = dgl.add_self_loop(g)
自环,来解决入度为0的问题。
对于ATDM模型,在我们的测试中,他在PEMSD4数据集上运行没有问题,需要您提供具体的配置。
对于HGCN模型和DKFN模型,建议先使用METR_LA数据集进行实验,这两个模型的问题我们会在近期的更新中解决。
from bigscity-libcity.
你好,关于这个问题主要考虑到PEMSD4数据集的特殊性,1是它本身包含交通速度流量和占有率3维数据,而一般的模型则适用于跑其中一维数据,不适合全部数据一起跑。这个可以从PEMSD4/config.json里边的
data_col
参数进行配置(我们建议您设置data_col: traffic_speed
这样再进行实验),选择你想要跑哪一维的数据,2这个数据集的图结构中存在入度为0节点。
感谢您的回复,但是设置完data_col: traffic_speed
,进行实验时,提示ValueError("batch['y_true'].shape is not equal to batch['y_pred'].shape")
,请问还需要在哪里进行更改嘛
from bigscity-libcity.
你好,关于这个问题主要考虑到PEMSD4数据集的特殊性,1是它本身包含交通速度流量和占有率3维数据,而一般的模型则适用于跑其中一维数据,不适合全部数据一起跑。这个可以从PEMSD4/config.json里边的
data_col
参数进行配置(我们建议您设置data_col: traffic_speed
这样再进行实验),选择你想要跑哪一维的数据,2这个数据集的图结构中存在入度为0节点。感谢您的回复,但是设置完
data_col: traffic_speed
,进行实验时,提示ValueError("batch['y_true'].shape is not equal to batch['y_pred'].shape")
,请问还需要在哪里进行更改嘛
哪一个模型呢?对了,记得同时设置output_dim=1
,因为如果输入只有速度,那么预测的输出维度也应该只有1维。
另外,修改参数后,记得在运行之前删除掉libcity/cache/dataset_cache/目录下边缓存的数据文件,否则很可能会继续加载之前的数据,导致报错。
from bigscity-libcity.
你好,关于这个问题主要考虑到PEMSD4数据集的特殊性,1是它本身包含交通速度流量和占有率3维数据,而一般的模型则适用于跑其中一维数据,不适合全部数据一起跑。这个可以从PEMSD4/config.json里边的
data_col
参数进行配置(我们建议您设置data_col: traffic_speed
这样再进行实验),选择你想要跑哪一维的数据,2这个数据集的图结构中存在入度为0节点。感谢您的回复,但是设置完
data_col: traffic_speed
,进行实验时,提示ValueError("batch['y_true'].shape is not equal to batch['y_pred'].shape")
,请问还需要在哪里进行更改嘛哪一个模型呢?对了,记得同时设置
output_dim=1
,因为如果输入只有速度,那么预测的输出维度也应该只有1维。 另外,修改参数后,记得在运行之前删除掉libcity/cache/dataset_cache/目录下边缓存的数据文件,否则很可能会继续加载之前的数据,导致报错。
好的 我改一下试试
from bigscity-libcity.
DKFN,STMGAT,HGCN的问题均已解决
from bigscity-libcity.
Related Issues (20)
- 关于libcity news中提到的几篇论文的实验结果差距 HOT 2
- How to adapt the models to grid data and the correspondence between data and models? HOT 3
- 请问如何画出像Pdformer一样或类似的热力图 HOT 1
- 原子文件可视化 HOT 1
- Hello author,I have some questions about libcity HOT 1
- ValueError caused by a higher version of numpy `setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1, 2) + inhomogeneous part.` HOT 2
- libcity for pdformer HOT 3
- why not use gpu HOT 2
- 您好,交通数据原子文件的统一存储格式404了。 HOT 3
- _add_external_information如何使用
- _add_external_information如何使用 HOT 1
- how to visualize the result?
- NYCBIKE20160809数据中是否无经纬度,不能进行可视化?
- ARIMA模型好像有问题
- 如何保存模型预测结果并对模型预测结果做误差下降曲线? HOT 3
- 图卷积实现-torch.geometric模块使用 HOT 3
- map_matching任务大概需要跑多长时间? HOT 1
- 将citibike网站的数据进行原子转换后输入模型,R2为负数 HOT 1
- 关于保存好的模型如何使用 HOT 1
- STSGCN实验结果 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigscity-libcity.