GCN-LPA icon indicating copy to clipboard operation
GCN-LPA copied to clipboard

Reset Labels for Labeled Nodes in LPA

Open unbreakablegao opened this issue 4 years ago • 3 comments

Hi,

In "model.py" when building lpa as following code, the labeled nodes seem not to be reset in the loop. I am wondering if this is correct. thank you! def _build_lpa(self): label_mask = tf.expand_dims(self.label_mask, -1) input_labels = label_mask * self.labels label_list = [input_labels]

    for _ in range(self.args.lpa_iter):
        lp_layer = LPALayer(adj=self.normalized_adj)
        hidden = lp_layer(label_list[-1])
        label_list.append(hidden)
    self.predicted_label = label_list[-1]

unbreakablegao avatar Jun 05 '20 06:06 unbreakablegao

@unbreakablegao @hwwang55 I am reading this code, and have the same question...

jlidw avatar Dec 10 '20 07:12 jlidw

me too

bozhenhhu avatar Apr 11 '21 10:04 bozhenhhu

I think the key point is, the input label of LPA (e.g., label[train_mask]) is the same as the ground truth label, which seems analog to an auto-encoder.

Hydrapse avatar Jul 23 '21 17:07 Hydrapse