_base

class mlptrain.loss._base.LossFunction(method_name: str | None = None)

Bases: ABC

abstract __call__(configurations: mlptrain.ConfigurationSet, mlp: MLPotential, **kwargs) LossValue

Compute a loss value

__init__(method_name: str | None = None)

Construct a loss function

class mlptrain.loss._base.LossValue(x, error: float | None = None)

Bases: ABC, float

__init__(x, error: float | None = None)

Loss value with a possible associated error

Keyword Arguments:

error (float | None)

abstract __repr__() str

Representation of this loss