How train CGN to fill in missing node attributes? #3428
-
Hi all I would like to train a CGN to be able to predict attributes of new nodes added to my graph. So I am training on the nodes for which the attributes are known. I have a vector of N features (known) for each node, and the target is also one of those N features (the one I want to be able to predict for new nodes). I want to somehow 'hide' the known feature value of the node being predicted, so it is just predicted from the graph convolution of neighbours (and neighbours neighbours). Otherwise it is a very trivial prediction problem where the value of the feature of that node is predicted from that same value! I think that setting Can anyone tell me if I got this right? Or does anyone have a good example of missing node feature prediction I could look at? Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think you do not necessarily need to set |
Beta Was this translation helpful? Give feedback.
I think you do not necessarily need to set
add_self_loops = False
, but rather change your training scenario as described here. That is, in each epoch, you select a random number of training nodes, set their target feature to zero, and try to predict it.