PonderLY / PC-GNN

(WWW 2021) Source code of PC-GNN
96 stars 21 forks source link

Error in calculating LF(C(v)) #7

Open brucetby opened 1 year ago

brucetby commented 1 year ago

Hi guys, I find an Error when calculating the label frequency of class C(v) The code is in the src/util.py line 111 the original code is: lf_train = (y_train.sum()-len(y_train))*y_train + len(y_train) but i think it should be: lf_train = (2 * y_train.sum()-len(y_train))*y_train + len(y_train) - y_train.sum()

is that right?

thank you!