GraphSAGE
GraphSAGE copied to clipboard
Features file for Heterogeneous Graph Network
I am trying to create input data files for the model but can't understand how to creat feat.npy file if I have two kinds of node in my graph (Let's say User and Item). Since I have 20 user attributes for every user and 50 item attributes for every item, how to create feat matrix for such graph? I would really appreciate your help on this.
@meenuagarwal Hi, do you find a solution? Maybe you can try N1d1 for user and N1d2 for item, then project them into a unified space(e.g., N1d, N2d).
Hi,
I am interested in this as well. My thought was similar to @Jhy1993. Concatenate the features of the node types together, maybe you can include a one hot encoding of the node type in addition as wel.
Cheers,
Kuhan
Yes usually concatenating the node features with a one hot of whether the node is user or item would work.
Hi @meenuagarwal , I meet the same problem, have you solved the problem?
Thanks