GraphSAGE icon indicating copy to clipboard operation
GraphSAGE copied to clipboard

Confused about features order

Open goleey opened this issue 6 years ago • 2 comments

Hi, I am trying to apply Graphsage to my dataset for node classification. I tried to format my data to what Graphsage needs. However, I found two problems: 1. the identity of nodes must be integers otherwise there will be an error. This may be caused by the version of networkx. I don't know if I am doing it wrong. 2.In readme, the order of features is followed by the id_map.json, where there is a dict in the file, which is unordered. Looking forward to your reply!

goleey avatar Dec 03 '18 13:12 goleey

Hi, I am trying to apply Graphsage to my dataset for node classification. I tried to format my data to what Graphsage needs. However, I found two problems:

  1. the identity of nodes must be integers otherwise there will be an error. This may be caused by the version of networkx. I don't know if I am doing it wrong. 2.In readme, the order of features is followed by the id_map.json, where there is a dict in the file, which is unordered. Looking forward to your reply!

@RexYing In problem 2, I am not sure in what order my features should be organized. Hopefully I express myself clearly. :)

goleey avatar Dec 03 '18 13:12 goleey

Hi, i think for dict order doesn't matter. as long as you map the feature/index that corresponds to id. The updated networkx should be able to handle non-int keys.

RexYing avatar May 28 '19 05:05 RexYing