xnn.ffnn.models.classical_train#
The kernels of classical_kernels differentiable twice, for training: the per-atom energies of the
pair and bonded terms with the gradients of their parameter arrays, and the position gradients as a function
that is itself differentiable (force losses, Hessian-vector products). The second derivatives run the
generated kernels of classical_tangents: the backward kernel’s tangent along the incoming direction
(the Hessian-vector product), the forward kernel’s tangent (the gradient of the incoming energy gradients) and
the tangent of the parameter adjoint (the parameter part of a force loss). The cell enters as a constant: a
stress loss takes the reference terms.
Functions
|
|
|
|
Classes
|
|
|
|