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

How to run baseline model? #6

Closed
JhuoW opened this issue Jul 3, 2021 · 2 comments
Closed

How to run baseline model? #6

JhuoW opened this issue Jul 3, 2021 · 2 comments

Comments

@JhuoW
Copy link

JhuoW commented Jul 3, 2021

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

@jiong-zhu
Copy link
Member

Thank you for your interest in our work!

From the logs you post it seems that the file baselines/graphsage-simple/graphsage/dataset.py is missing or corrupted: it is supposed to be a symbolic link to the file experiments/h2gcn/utils/dataset.py. You could try to recreate the symbolic link, or copy the file experiments/h2gcn/utils/dataset.py to the path baselines/graphsage-simple/graphsage/dataset.py; either approach should be able to resolve this issue.

@JhuoW
Copy link
Author

JhuoW commented Jul 9, 2021

Thank you for your answer.

@JhuoW JhuoW closed this as completed Jul 9, 2021
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

2 participants