liveBook · Manning

Log-softmax function

As explained in Graph Neural Networks in Action

A function that applies logarithms to softmax-normalized scores to produce log probabilities over classes.

Log-softmax converts model scores into a normalized log-probability distribution over classes. In a GNN classifier, it turns the second graph-convolution output into predictions for each node. section 2.3.3

A practical GNN classification pipeline uses it as follows:

  • Generate node representations with graph-convolution layers. section 2.3.3

How Graph Neural Networks in Action covers it

How deep it goes
Defines the activation and demonstrates its placement and training use, without deriving logarithmic or softmax internals.
Examples
Uses SimpleGNN on the books_gml dataset for three-label node classification, with randomized or N2V node features.
What it assumes
Assumes familiarity with GNN layers, node embeddings, class labels, and a supervised training loop.
What you can do after
Apply it via PyTorch in a GNN forward pass and train predictions over masked nodes.
How it connects
Connects GNN embeddings, graph convolution, node classification, training masks, and classification loss.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Neural Networks in Action. The section links point to the parts of the book it draws on.