LennyHuang15 / RNE-notebook

Road Network Embedding code in python
1 stars 2 forks source link

关于Nodes_full_4_8.data文件的问题 #1

Open future1c opened 11 months ago

future1c commented 11 months ago

老师您好,能问下代码里的Nodes_full_4_8.data文件里的数据是什么意思吗?

LennyHuang15 commented 10 months ago

您好,代码里只使用到这个文件里的奇数列 parts = loadArrayInt(f_part_full)[:, 1::2] 这个tensor共有#vertex行,每行是一个vertex在graph-tree各层所在tree-node的全局标号(tree中所有node各不相同) 通过partDict(parts[:, ptsIdxs[lev]])可以得到各vertex在第lev层的所在tree-node的局部标号(只含当前层的node,从0开始标号) 通过以下代码: parts_ = partDict(parts[:, ptsIdxs[lev]]) parts__ = partDict(parts[:, ptsIdxs[lev-1]]) embeddings_to_train_next[parts_] = embeddings_trained[parts__] 可以实现让第lev层各node的embedding初始化为其对应第lev-1层的parent node,从而从上到下progressive地训练。

pyz456 commented 5 months ago

请问一下,Nodes_full_4_8.data是使用什么工具得到的

future1c commented 5 months ago

应该是用METIS进行图分割的,网址:http://glaros.dtc.umn.edu/gkhome/metis/metis/overview, 请问一下你复现“A Learning-based Method for Computing Shortest Path Distances on Road Networks”论文的代码了吗

------------------ 原始邮件 ------------------ 发件人: "LennyHuang15/RNE-notebook" @.>; 发送时间: 2024年4月21日(星期天) 下午2:07 @.>; @.**@.>; 主题: Re: [LennyHuang15/RNE-notebook] 关于Nodes_full_4_8.data文件的问题 (Issue #1)

请问一下,Nodes_full_4_8.data是使用什么工具得到的

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

pyz456 commented 4 months ago

应该是用METIS进行图分割的,网址:http://glaros.dtc.umn.edu/gkhome/metis/metis/overview, 请问一下你复现“A Learning-based Method for Computing Shortest Path Distances on Road Networks”论文的代码了吗 ------------------ 原始邮件 ------------------ 发件人: "LennyHuang15/RNE-notebook" @.>; 发送时间: 2024年4月21日(星期天) 下午2:07 @.>; @.**@.>; 主题: Re: [LennyHuang15/RNE-notebook] 关于Nodes_full_4_8.data文件的问题 (Issue #1) 请问一下,Nodes_full_4_8.data是使用什么工具得到的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我卡在得到Nodes_full_4_8.data这个了 卡了好几星期了,能加个qq吗,2232195340

pyz456 commented 4 months ago

应该是用METIS进行图分割的,网址:http://glaros.dtc.umn.edu/gkhome/metis/metis/overview, 请问一下你复现“A Learning-based Method for Computing Shortest Path Distances on Road Networks”论文的代码了吗 ------------------ 原始邮件 ------------------ 发件人: "LennyHuang15/RNE-notebook" @.>; 发送时间: 2024年4月21日(星期天) 下午2:07 @.>; @.**@.>; 主题: Re: [LennyHuang15/RNE-notebook] 关于Nodes_full_4_8.data文件的问题 (Issue #1) 请问一下,Nodes_full_4_8.data是使用什么工具得到的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我安装好METIS了,好像也得不到这个文件,也有可能是我使用方法不对吧