Node attributes
LIANGKE23 opened this issue · 3 comments
Is there any way to add attributes inside of your model?
Yes, currently the default is a binary flag to use node embeddings as node features but you can easily modify it to use external attributes. You can pass in your node attributes using the n_feats flag of the _prepare_features_new function. Let me know if you have any more questions
And for the node features, for example, in my graph, there are 6 attributes for the nodes, what is the format of the attribues file I should build? A mat? or npy? with the rows for attributes? or?
Can you give an example?
Yes, currently the default is a binary flag to use node embeddings as node features but you can easily modify it to use external attributes. You can pass in your node attributes using the n_feats flag of the _prepare_features_new function. Let me know if you have any more questions
And for the node features, for example, in my graph, there are 6 attributes for the nodes, what is the format of the attribues file I should build? A mat? or npy? with the rows for attributes? or?
Can you give an example?