GraphSAGE icon indicating copy to clipboard operation
GraphSAGE copied to clipboard

Features file for Heterogeneous Graph Network

Open meenuagarwal opened this issue 5 years ago • 4 comments

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 avatar Jul 30 '19 06:07 meenuagarwal

@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).

Jhy1993 avatar Aug 06 '19 06:08 Jhy1993

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

kuhanw avatar Aug 14 '19 14:08 kuhanw

Yes usually concatenating the node features with a one hot of whether the node is user or item would work.

RexYing avatar Sep 18 '19 18:09 RexYing

Hi @meenuagarwal , I meet the same problem, have you solved the problem?

Thanks

bjuthjliu avatar Aug 17 '20 10:08 bjuthjliu