You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_dim、mini_batch_flag ... defined in config, besides, when I successfully run this model, another exception was raised:
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.
🐛 Bug
when i run the suggest command :
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 nohidden_dim
、mini_batch_flag
... defined in config, besides, when I successfully run this model, another exception was raised: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
The text was updated successfully, but these errors were encountered: