xnn.gnn.fast.megnet.encode_function#

xnn.gnn.fast.megnet.encode_function(n_edge, n_node, n_state, act)[source]#

f(dist, x, u, *weights, centers, gamma): the Gaussian bond expansion and the three encoders.

The weights are those of the edge, node and state encoders in order (weight, bias per layer); n_edge, n_node and n_state are their numbers of layers.

Parameters:
Return type:

Callable