How to interpret the results of LAP with GAE #2731
Replies: 17 comments
-
Since the result of lpa is a pandas DataFrame, you could make some manipulations over it. For example, extract the nodes that related to a certain community like this: communities = {}
for row in df.iterrows():
node_id, community_id = row[1]
if community_id not in communities:
communities[community_id] = []
communities[community_id].append(node_id)
for k, v in communities.items():
print('community {}: {}'.format(k, v)) |
Beta Was this translation helpful? Give feedback.
-
By the way, it's pretty suitable to use chatGPT-like tools to do these jobs. 🤣 |
Beta Was this translation helpful? Give feedback.
-
Yes, I consulted with Chat-GPT while writing the issue! Although there were some errors, it ran after the modifications were made. |
Beta Was this translation helpful? Give feedback.
-
It seems the result is not correct, according to the edge lists, do you mean this? |
Beta Was this translation helpful? Give feedback.
-
Yes!
Second
|
Beta Was this translation helpful? Give feedback.
-
Thanks, we will try to confirm and debug that. Sorry for the inconvenience. |
Beta Was this translation helpful? Give feedback.
-
From the discussion #1498 cdlp = lpa in graphscope |
Beta Was this translation helpful? Give feedback.
-
graphscope lpa is the version that we implement for LDBC benchmark, which optimized for speed. |
Beta Was this translation helpful? Give feedback.
-
@JackyYangPassion 经过调查,发现原因
可以配置 |
Beta Was this translation helpful? Give feedback.
-
感谢,这个修复起来容易吗?可以指导下修复 |
Beta Was this translation helpful? Give feedback.
-
我看一下 GS 有没有其他实现 |
Beta Was this translation helpful? Give feedback.
-
研究了一些 networkx 的这个lpa 的版本,发现实现上有一些区别,比如这个 asyn_lpa_communities 是不确定性的。我理解震荡会在一些特殊的节点内发生,这时由于每一轮迭代双方节点互换,所以达不到一个稳定状态。而且分布式比单机算法更加复杂一些,不容易收敛。这个如果数据量级大了之后应该不是什么问题。 |
Beta Was this translation helpful? Give feedback.
-
好的 感谢建议,我试试 |
Beta Was this translation helpful? Give feedback.
-
“cc 算法” 是指 wcc? |
Beta Was this translation helpful? Give feedback.
-
是的 |
Beta Was this translation helpful? Give feedback.
-
Mark After this period of study in the field of graph mining, I have a better understanding. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
DataSet
Vertices
Edges
when run lpa
the result:
Use networkX
Original Graph before clustering.
Results after clustering.
Expected behavior
I want to know how can get the result like networkX with graphScope lpa
for example
community 0 [node_list]
community 1 [node_list]
.....
community n [node_list]
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions