Skip to content
Discussion options

You must be logged in to vote

Pyg doesn't have an inbuilt functions to generate HeteroData object from the kind of data you shared. You'll have to write your own functions which does something like

  1. Read the csv as a pandas dataframe.
  2. For each unique head_label and tail_label pair construct an edge_index, and add it to HeteroData object.

Now since you don't have node features, you could

  1. Construct node features like degree, centrality etc
  2. If this is an inductive task you could use Embedding

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@songsong0425
Comment options

@rusty1s
Comment options

@songsong0425
Comment options

@rusty1s
Comment options

@songsong0425
Comment options

Answer selected by songsong0425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants