Node feature #3420
Answered
by
rusty1s
shrimonmuke0202
asked this question in
Q&A
Node feature
#3420
-
I want to calculate the average of node features for a graph. How can I do this? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Nov 2, 2021
Replies: 2 comments 4 replies
-
What do you mean with average? If you want to find the average value for each feature across the node dimension, then you can simply run: data.x.mean(dim=0) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
shrimonmuke0202
-
Thanks for your reply.
…On Tue, Nov 2, 2021 at 1:51 PM Matthias Fey ***@***.***> wrote:
Yes, that's exactly what data.x.mean(dim=0) (on a single graph) or x =
global_mean_pool(...) in a mini-batch of graphs is doing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3420 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQ7MTCRX7MQXDXTOOVMJ2Q3UJ6NR7ANCNFSM5HFSHBCA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What do you mean with average? If you want to find the average value for each feature across the node dimension, then you can simply run: