BUPT-GAMMA / OpenHGNN

This is an open-source toolkit for Heterogeneous Graph Neural Network(OpenHGNN) based on DGL.
Apache License 2.0
867 stars 143 forks source link

'HetGNNTrainer' object has no attribute 'construct_negative_graph' #251

Open herbertguoqi opened 1 week ago

herbertguoqi commented 1 week ago

when i run "python main.py -m HetGNN -t node_classification -d academic4HetGNN -g 0" to train my hetgnn model, I encounter this error

File "/root/OpenHGNN/openhgnn/trainerflow/hetgnn_trainer.py", line 78, in _full_train_setp negative_graph = self.construct_negative_graph() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'HetGNNTrainer' object has no attribute 'construct_negative_graph'

And not find construct_negative_graph function in this class Can you tell me how to fix this? thx