xmweijh / CommunityDetection

GN, FN, LPA, SLPA, COPAR、Louvain...
135 stars 29 forks source link

你好!请教问题,copra算法有问题 #5

Closed BaiqiLi123 closed 1 year ago

BaiqiLi123 commented 1 year ago

你好!请教问题,copra算法有问题

image copra算法这一步报错了。 报错信息如下:我感觉报错信息时“使用random.sample时,字典为空,无法选取” image

怎么改呢?

xmweijh commented 1 year ago

random.sample

temp_label有问题吧,你可以debug下看下具体细节

BaiqiLi123 commented 1 year ago

len(temp_label.keys())= 0 这个怎么处理捏?

---原始邮件--- 发件人: @.> 发送时间: 2023年3月2日(周四) 上午8:57 收件人: @.>; 抄送: @.**@.>; 主题: Re: [xmweijh/CommunityDetection] 你好!请教问题,copra算法有问题 (Issue #5)

random.sample

temp_label有问题吧,你可以debug下看下具体细节

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

xmweijh commented 1 year ago

temp_label.

debug看下他为什么为0