Coefficient of Determination R^2

Hi, how can I use the coefficient of determination (R^2) instead of Pearson coefficient of correlation (r^2) as a metric? Thank you!

Hi, it doesn’t seem to be a question related to GNN or DGL. Perhaps you could ask it in PyTorch forum?