Skip to content

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

Description

@herbertguoqi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions