gcn icon indicating copy to clipboard operation
gcn copied to clipboard

difference between x and allx

Open amrmohammed123 opened this issue 5 years ago • 2 comments

what is the use of x in load_data function as from what I see it's just loaded and isn't used, but the one used is allx, what are the differences between them.

amrmohammed123 avatar Apr 05 '19 10:04 amrmohammed123

If I remember correctly, x was only used for inductive semi-supervised learning tasks in the paper that released that benchmark (see README), and does not contain all node feature vectors. For transductive learning (the setting considered in this work), simply use allx which contains all feature vectors.

On Fri, Apr 5, 2019 at 12:56 PM amrmohammed123 [email protected] wrote:

what is the use of x in load_data function as from what I see it's just loaded and isn't used, but the one used is allx, what are the differences between them.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tkipf/gcn/issues/101, or mute the thread https://github.com/notifications/unsubscribe-auth/AHAcYDqcC7QKXsaiNiDsSF1upSkTYBISks5vdyvAgaJpZM4ceqxI .

tkipf avatar Apr 05 '19 12:04 tkipf

If I remember correctly, x was only used for inductive semi-supervised learning tasks in the paper that released that benchmark (see README), and does not contain all node feature vectors. For transductive learning (the setting considered in this work), simply use allx which contains all feature vectors. On Fri, Apr 5, 2019 at 12:56 PM amrmohammed123 @.***> wrote: what is the use of x in load_data function as from what I see it's just loaded and isn't used, but the one used is allx, what are the differences between them. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#101>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHAcYDqcC7QKXsaiNiDsSF1upSkTYBISks5vdyvAgaJpZM4ceqxI .

Actually allx does not contain all features. There are 2708 nodes in cora. I tried loading the data and found the shape of allx is 1708x1433, containing features of 1708 nodes except the 1000 test nodes

b224618 avatar Jan 22 '20 01:01 b224618