xnn.gnn.models.gemnet#

GemNet (Gasteiger, Becker, Guennemann, NeurIPS 2021, arXiv:2106.08903).

Geometric message passing over directed edge embeddings with one-hop (triplet) and two-hop (quadruplet) interactions, built on the xnn bases shared with DimeNet; one class covers GemNet-Q, -T, -dQ and -dT.

Functions

index_plan(edge_index, edge_vec, num_nodes, ...)

The index work of a GemNet evaluation: the embedding edges (within the embedding cutoff), their reverse edges, the triplets and (quadruplet variants) the quadruplets.

quadruplet_indices(src, dst, vec, emb_ids, ...)

The quadruplets c -> a - b <- d (paper section 5): the interaction edges, the intermediate triplets a - b <- d (their interaction edge and edge d -> b) and, per quadruplet (grouped by c -> a), the interaction edge, the edge c -> a, the intermediate triplet and the slot.

reverse_edges(edge_index, edge_vec)

The index of the reverse a -> c of every directed edge c -> a.

triplets(edge_index, num_nodes)

The triplets c -> a <- b of one-hop message passing (b != c).

Classes

GemNet([n_features, n_edge_features, ...])

GemNet: geometric message passing (Gasteiger, Becker, Guennemann, NeurIPS 2021).

GemNetPlanner(emb_cutoff, int_cutoff, ...)

The index plan of a batch (index_plan()), built outside the model step for a captured training step (xnn.common.train.graphed).

ScaleFactor()

A constant factor that keeps the activation variance of a layer (paper section 6).