Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run main.py #10

Closed
linkerlin opened this issue Nov 18, 2019 · 1 comment
Closed

Cannot run main.py #10

linkerlin opened this issue Nov 18, 2019 · 1 comment

Comments

@linkerlin
Copy link

src/main.py --epochs 100
+-------------------+----------------------+
| Parameter | Value |
+===================+======================+
| Cluster number | 10 |
+-------------------+----------------------+
| Clustering method | metis |
+-------------------+----------------------+
| Dropout | 0.500 |
+-------------------+----------------------+
| Edge path | ./input/edges.csv |
+-------------------+----------------------+
| Epochs | 100 |
+-------------------+----------------------+
| Features path | ./input/features.csv |
+-------------------+----------------------+
| Layers | [16, 16, 16] |
+-------------------+----------------------+
| Learning rate | 0.010 |
+-------------------+----------------------+
| Seed | 42 |
+-------------------+----------------------+
| Target path | ./input/target.csv |
+-------------------+----------------------+
| Test ratio | 0.900 |
+-------------------+----------------------+

Metis graph clustering started.

Traceback (most recent call last):
File "src/main.py", line 24, in
main()
File "src/main.py", line 18, in main
clustering_machine.decompose()
File "/Users/linmiao/gits/ClusterGCN/src/clustering.py", line 38, in decompose
self.metis_clustering()
File "/Users/linmiao/gits/ClusterGCN/src/clustering.py", line 56, in metis_clustering
(st, parts) = metis.part_graph(self.graph, self.args.cluster_number)
File "/usr/local/lib/python3.7/site-packages/metis.py", line 765, in part_graph
graph = networkx_to_metis(graph)
File "/usr/local/lib/python3.7/site-packages/metis.py", line 574, in networkx_to_metis
for i in H.node:
AttributeError: 'Graph' object has no attribute 'node'

@NIRVANALAN
Copy link

NIRVANALAN commented Nov 24, 2019

networkx==2.3 solved this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants