Skip to content

RuntimeError: This StellarGraph has no numeric feature attributes for nodesNode features are required for machine learning #1793

Answered by huonw
ubayram asked this question in General
Discussion options

You must be logged in to vote

Hi, thanks for asking a question.

The GraphSAGE algorithm relies on nodes having feature vectors. For example, if your nodes represent bank accounts, they might have features like "date opened" and "balance". The algorithm needs these features in order to learn anything, because it performs sampling and aggregation on these features directly. One approach is to add a dummy one-hot encoded node feature, representing the node identity. However, this will require a square matrix of features of size (number of nodes)2, which is 70.5 billlion in this case, and so not feasible. (StellarGraph doesn't support sparse features at the moment.)

The recommended approach is to choose a different algori…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ubayram
Comment options

You must be logged in to vote
1 reply
@jimmy-Smile-ltl
Comment options

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