Formula

Node Classification Loss Formula in GNNs

The fully-supervised node classification loss is typically the negative log-likelihood of the true label under a softmax classifier applied to each node's embedding: L=viVtrainlog(softmax(MLP(zi))yi)\mathcal{L} = -\sum_{v_i \in \mathcal{V}_{train}} \log\big(\text{softmax}(\text{MLP}(z_i))_{y_i}\big) where ziz_i is the GNN-produced embedding for node viv_i, Vtrain\mathcal{V}_{train} is the set of labeled training nodes, and yiy_i is the true label of node viv_i.

0

1

Updated 2026-07-06

Contributors are:

Who are from:

Tags

Deep Learning

Data Science

Machine Learning Yearning @ DeepLearning.AI

Dive into Deep Learning @ D2L

Machine Learning

Supervised Learning