xnn.hybnn.models.byteff.BondedHead#
- class xnn.hybnn.models.byteff.BondedHead(node_dim, edge_dim, pre=(256, 256, 3), out=(256, 4), tanh_output=20.0, form='harmonic', activation='gelu')[source]#
Bases:
ModuleBond, angle, torsion and improper parameters from atom and edge states.
The states along a term are concatenated in both directions (impropers: center, edge and one neighbor, for each neighbor) and summed through one MLP, so the parameters do not depend on the order the term is written in.
- Parameters:
node_dim (int) – Widths of the atom and edge states.
edge_dim (int) – Widths of the atom and edge states.
pre (tuple of int) –
(hidden, out, layers)of the pooling MLPs (and of the MLP after pooling).out (tuple of int) –
(hidden, layers)of the per-parameter output MLPs.tanh_output (float) – Bound of the raw outputs (
t tanh(y)); 0 leaves them unbounded.form (str) –
"harmonic"(force constant and equilibrium value) or"two_well"(two force constants about the fixed anchors, an equivalent harmonic term).activation (str) – Activation of the MLPs.