Graph-Embeddding icon indicating copy to clipboard operation
Graph-Embeddding copied to clipboard

GAE模型在pubmed数据集上遇到的问题

Open Dooooove opened this issue 2 years ago • 2 comments

您好!感谢您的模型在我学习上的帮助! 但是我在运行代码中遇到了一个问题,其中my_GAE.py在pubmed数据集上进行clustering任务时会提示错误 TypeError: cannot unpack non-iterable int object Class Not equal, Error!!!! 可能是聚类里面输入的类别不对?pubmed数据集里面的label是从0开始编号的0,1,2,所以 kmeans = KMeans(n_clusters=max(np.int_(labels).flatten()))这行代码的分类类别就出现了错误。但是当我将这行代码简单粗暴改为 n_clusters=3 后,代码可以运行,但是效果很差,尤其是nmi: ACC_H2= 39.424354617842475 NMI_H2= 0.012092663388261319 PUR_H2= -0.07971882995447442 请问这个问题该怎么解决呢……困扰好多天了

Dooooove avatar Mar 08 '22 03:03 Dooooove

我这两天跑下代码试试。这个代码我也好久没看过了,等我运行试试,我给你说。

------------------ 原始邮件 ------------------ 发件人: "zyx423/Graph-Embeddding" @.>; 发送时间: 2022年3月8日(星期二) 中午11:56 @.>; @.***>; 主题: [zyx423/Graph-Embeddding] GAE模型在pubmed数据集上遇到的问题 (Issue #5)

您好!感谢您的模型在我学习上的帮助! 但是我在运行代码中遇到了一个问题,其中my_GAE.py在pubmed数据集上进行clustering任务时会提示错误 TypeError: cannot unpack non-iterable int object Class Not equal, Error!!!! 可能是聚类里面输入的类别不对?pubmed数据集里面的label是从0开始编号的0,1,2,所以 kmeans = KMeans(n_clusters=max(np.int_(labels).flatten()))这行代码的分类类别就出现了错误。但是当我将这行代码简单粗暴改为 n_clusters=3 后,代码可以运行,但是效果很差,尤其是nmi: ACC_H2= 39.424354617842475 NMI_H2= 0.012092663388261319 PUR_H2= -0.07971882995447442 请问这个问题该怎么解决呢……困扰好多天了

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.Message ID: @.***>

zyx423 avatar Mar 08 '22 03:03 zyx423

好的!十分感谢Thanks♪(・ω・)ノ

Dooooove avatar Mar 08 '22 04:03 Dooooove