Apply node-level MSE on batches of multiple graphs #4678
Answered
by
rusty1s
bardia-esmaeili
asked this question in
Q&A
-
Hello, I am trying to measure the below loss function for a batch of multiple graphs with a different number of nodes for each graph. As you can see in the formula, I should measure the mse for each node embedding in each graph, measure the mean over that graph, then average the value for all graphs. Since a data loader in PyG provides |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
May 19, 2022
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bardia-esmaeili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
scatter_mean
to compute the mean per graph, and then usemean()
to compute the mean per batch.