Skip to content

some question about Feature smoothness #2

@junkangwu

Description

@junkangwu

Nice to meet you, I am interesting in your paper in 2020ICLR-"MEASURING AND IMPROVING THE USE OF GRAPH INFORMATION IN GRAPH NEURAL NETWORKS".But when I plan to caculate some feature smoothness,I found it has some difference.I wish you could help me out!
To caculate the feature smoothness of dataset --cora, I use the folloing codes:

result=np.zeros(features.shape[1])
for i in range(features.shape[0]):
    z=np.zeros((1,features.shape[1]))
    for j in range(features.shape[0]):
        if adj[i,j]==1 and i!=j:
            z+=features[i].toarray()-features[j].toarray()
    zz=np.squeeze(z)
    result+=zz*zz

result=np.sum(result)/(features.shape[1]*5429)
print(result)

But the result of my codes is so big.I'm little confused !
THANKS A LOT!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions