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

run HGSL model error #143

Closed
vchopin opened this issue Dec 1, 2022 · 1 comment
Closed

run HGSL model error #143

vchopin opened this issue Dec 1, 2022 · 1 comment

Comments

@vchopin
Copy link

vchopin commented Dec 1, 2022

🐛 Bug

when i run the suggest command :

python main.py -m HGSL -d acm4GTN -t node_classification -g 0 --use_best_config

this raise an error like:

Traceback (most recent call last):
File "main.py", line 21, in
experiment.run()
File "/workspace/OpenHGNN/openhgnn/experiment.py", line 97, in run
flow = build_flow(self.config, trainerflow)
File "/workspace/OpenHGNN/openhgnn/trainerflow/init.py", line 46, in build_flow
return FLOW_REGISTRYflow_name
File "/workspace/OpenHGNN/openhgnn/trainerflow/node_classification.py", line 42, in init
self.model = build_model(self.model).build_model_from_args(self.args, self.hg).to(self.device)
File "/workspace/OpenHGNN/openhgnn/models/HGSL.py", line 106, in build_model_from_args
mp_emb_dim = hg.nodes["paper"].data["pap_m2v_emb"].shape[1]
File "/opt/conda/lib/python3.7/site-packages/dgl/view.py", line 73, in getitem
return self._graph._get_n_repr(self._ntid, self._nodes)[key]
File "/opt/conda/lib/python3.7/site-packages/dgl/frame.py", line 622, in getitem
return self._columns[name].data
KeyError: 'pap_m2v_emb'

it seems like there is no pap_m2v_emb key in paper nodes data, so how to fix it?


more error update:
when I just make mp_emb_dim=0 to jump this line, more errors raise, such as no hidden_dimmini_batch_flag ... defined in config, besides, when I successfully run this model, another exception was raised:

image

Do you have an updated version of the model?

Sincere thanks.

To Reproduce

Steps to reproduce the behavior:

1.cd OpenHGNN
2.python main.py -m HGSL -d acm4GTN -t node_classification -g 0 --use_best_config

Expected behavior

Environment

  • OpenHGNN Version (e.g., 1.0):
  • PyTorch latest, DGL latest
  • Linux
  • python main.py -m HGSL -d acm4GTN -t node_classification -g 0 --use_best_config
  • best_config for recommend
@lazishu2000
Copy link
Collaborator

Sorry, it seems that a bug occurred during dataset migration. It is fixed right now, please pull the new version if you want to run this model. Besides, you can not only use --use_bese_config, but also change HGSL's config in openhgnn/config.ini now.
Sorry for any trouble we caused you.

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