Giter Site home page Giter Site logo

gemslab / h2gcn Goto Github PK

View Code? Open in Web Editor NEW
92.0 4.0 16.0 20.39 MB

Boost learning for GNNs from the graph structure under challenging heterophily settings. (NeurIPS'20)

Python 70.63% Jupyter Notebook 27.67% Shell 1.70%
graph-neural-networks graphs node-classification heterophily signac neurips-2020

h2gcn's People

Contributors

jiong-zhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

h2gcn's Issues

How to get and use the node features of the syn-cora dataset?

Recently I had the pleasure of reading your paper "Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs" published in NIPS and was impressed with the algorithm and experimental results. I am following the instructions on your github to try to reproduce your experiment using the H2GCN algorithm alone (instead of signac). I downloaded the synthetic dataset using the "get-syn-cora.sh" script file you provided, but during the experiment I noticed that the downloaded ".allx" file does not seem to contain the node features. (The data in ".allx" are some sparse, binary-valued matrices, although the format is ture.) Therefore, I would like to check with you: Does the downloaded dataset named "workspace" already include node features? If yes, how do I use it? Is it possible to call it directly using the same interface as Kipf? If not, how should I regenerate the features to be able to reproduce the results reported in Figure2(a)? Could you please provide it in the same as Kipf et.al, I believe it would be very profitable for the community and to promote your work. We sincerely look forward to hearing from you!

Can not run H2GCN on Actor, WebKB and Wikipedia Dataset

Hello,

According to your repository you have provided the citation (cora, citeseer, pubmed) datasets. I want to reproduce the results of H2GCN in Actor, WebKB (Cornell, Texas, Wisconsin) and Wikipedia (Chameleon, Squirrel) datasets.

But the citation datasets are transformed into .x, .y, .allx, .ally, .graph, .test.index in these format while other datasets mentioned above are not available in internet in these format.

Can you please provide the utility code which you used to load these datasets to run H2GCN on them?

How to run baseline model?

Hi,
I want to run baseline models with

cd  experiments/h2gcn  
python run_graphsage_experiments.py -c configs/real-geomgcn/graphsage.json run --debug

I got the following error:

[07-03 04:53:12 run_model@4c95f334af46cefe80977d9c96123445     INFO] Traceback (most recent call last):
[07-03 04:53:12 run_model@4c95f334af46cefe80977d9c96123445     INFO] File "model.py", line 10, in <module>
[07-03 04:53:12 run_model@4c95f334af46cefe80977d9c96123445     INFO] import dataset
[07-03 04:53:12 run_model@4c95f334af46cefe80977d9c96123445     INFO] ModuleNotFoundError: No module named 'dataset'
[07-03 04:53:13 run_model@4c95f334af46cefe80977d9c96123445    ERROR] Check log at /H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments/terminal_output.log

And the terminal_output.log contains:

[07-03 04:43:07     INFO] ===============
>>>>Executing command ['/home/anaconda3/bin/python', '-u', 'model.py', '--dataset_path', '/H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb', '--dataset', 'ind.cora-unmodified-0.48p__0.2p', '--run_id=H2GCN --network_setup M64-T1-G-V-C1-MO --adj_nhood 1 2 --l2_regularize_weight 1e-5@ce7091201460a2a7d3384b919b781b63_9caf91da0e68a2cb7a0d7b4c648929c4_20c7d1b09c28a20e6fa374cc6c8544e8_8b2d686c68a5e9f7ff474419f73f3a6d_0c634e96f738e8800231132e2848e303_248ec654a2e8d5f30df7ac8ef12d3cf5_a4007892967f684b0be93efd41b1d2f3_83150345b828a1192e923bc2e926b66b', '--use_signac', '--signac_root', '/H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments', '--val_size', '1019', 'H2GCN', '--network_setup', 'M64-T1-G-V-C1-MO', '--adj_nhood', '1', '2', '--l2_regularize_weight', '1e-5']
===============
[07-03 04:43:08     INFO] Traceback (most recent call last):
[07-03 04:43:08     INFO] File "model.py", line 10, in <module>
[07-03 04:43:08     INFO] import dataset
[07-03 04:43:08     INFO] ModuleNotFoundError: No module named 'dataset'
[07-03 04:43:08    ERROR] Check log at /H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments/terminal_output.log
[07-03 04:45:57     INFO] ===============
>>>>Executing command ['/home/anaconda3/bin/python', '-u', 'model.py', '--dataset_path', โ€™/H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb', '--dataset', 'ind.cora-unmodified-0.48p__0.2p', '--run_id=H2GCN --network_setup M64-T1-G-V-C1-MO --adj_nhood 1 2 --l2_regularize_weight 1e-5@ce7091201460a2a7d3384b919b781b63_9caf91da0e68a2cb7a0d7b4c648929c4_20c7d1b09c28a20e6fa374cc6c8544e8_8b2d686c68a5e9f7ff474419f73f3a6d_0c634e96f738e8800231132e2848e303_248ec654a2e8d5f30df7ac8ef12d3cf5_a4007892967f684b0be93efd41b1d2f3_83150345b828a1192e923bc2e926b66b', '--use_signac', '--signac_root', '/H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments', '--val_size', '1019', 'H2GCN', '--network_setup', 'M64-T1-G-V-C1-MO', '--adj_nhood', '1', '2', '--l2_regularize_weight', '1e-5']
===============
[07-03 04:45:58     INFO] Traceback (most recent call last):
[07-03 04:45:58     INFO] File "model.py", line 10, in <module>
[07-03 04:45:58     INFO] import dataset
[07-03 04:45:58     INFO] ModuleNotFoundError: No module named 'dataset'
[07-03 04:45:58    ERROR] Check log at /H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments/terminal_output.log
[07-03 04:53:11     INFO] ===============
>>>>Executing command ['/anaconda3/bin/python', '-u', 'model.py', '--dataset_path', '/H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb', '--dataset', 'ind.cora-unmodified-0.48p__0.2p', '--run_id=--hid_units 64 --epochs 500@ce7091201460a2a7d3384b919b781b63_9caf91da0e68a2cb7a0d7b4c648929c4_20c7d1b09c28a20e6fa374cc6c8544e8_8b2d686c68a5e9f7ff474419f73f3a6d_0c634e96f738e8800231132e2848e303_248ec654a2e8d5f30df7ac8ef12d3cf5_a4007892967f684b0be93efd41b1d2f3_83150345b828a1192e923bc2e926b66b', '--use_signac', '--signac_root', '/H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments', '--val_size', '1019', '--hid_units', '64', '--epochs', '500']
===============
[07-03 04:53:12     INFO] Traceback (most recent call last):
[07-03 04:53:12     INFO] File "model.py", line 10, in <module>
[07-03 04:53:12     INFO] import dataset
[07-03 04:53:12     INFO] ModuleNotFoundError: No module named 'dataset'
[07-03 04:53:13    ERROR] Check log at /H2GCN/experiments/h2gcn/workspace/4c95f334af46cefe80977d9c96123445/features/e9cf54653de9231697763f2d1216eb5c/splits/eb8f45d8594346aa36c4773fc43f13fb/experiments/graphsage_experiments/terminal_output.log

I don't know whether it is the right way to directly run the baseline models, could you help me solve this problem? Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.