Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node attributes #2

Open
LIANGKE23 opened this issue Nov 2, 2020 · 3 comments
Open

Node attributes #2

LIANGKE23 opened this issue Nov 2, 2020 · 3 comments

Comments

@LIANGKE23
Copy link

Is there any way to add attributes inside of your model?

@egdenis
Copy link

egdenis commented Nov 20, 2020

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

@LIANGKE23
Copy link
Author

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?

@LIANGKE23
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants