xnn.gnn.models.egt.GraphEmbedding#
- class xnn.gnn.models.egt.GraphEmbedding(atom_dim=32, feature_dim=8, node_mlp=(64, 256, 2), edge_mlp=(64, 256, 2), activation='gelu')[source]#
Bases:
ModuleEmbeddings of the atom and bond features, mixed by MLPs and averaged over equivalent atoms and bonds.
- Parameters:
atom_dim (int) – Width of the element embedding.
feature_dim (int) – Width of every other feature embedding.
node_mlp (tuple of int) –
(hidden, out, layers)of the node and edge MLPs (activated after the last layer too).edge_mlp (tuple of int) –
(hidden, out, layers)of the node and edge MLPs (activated after the last layer too).activation (str) – Activation of the MLPs.