typing#

Documents commonly used types in chemtrain.

Templates#

class EnergyFn(*args, **kwargs)[source]#
__call__(position, neighbor=None, **kwargs)[source]#

Computes the energy for a given conformation.

Parameters:
Return type:

Union[Array, ndarray, bool, number, bool, int, float, complex]

Returns:

Returns the potential energy of the system.

class EnergyFnTemplate(*args, **kwargs)[source]#
__call__(energy_params)[source]#

Initialies the energy function with parameters.

Parameters:

energy_params (Any) – Parameters for the energy function.

Return type:

EnergyFn

Returns:

Returns a concrete potential energy function.

Error Functions#

class ErrorFn(*args, **kwargs)[source]#
__call__(predictions, targets, mask=None, weights=None)[source]#

Computes the error of the predictions.

Parameters:
Return type:

Union[Array, ndarray, bool, number, bool, int, float, complex]

Returns:

Returns the masked error value.

Quantities#

class TrajFn(*args, **kwargs)[source]#
__call__(quantity_trajs, weights=None)[source]#

Call self as a function.

Return type:

Union[Array, ndarray, bool, number, bool, int, float, complex]

class SingleTarget[source]#
class QuantityComputeFunction(*args, **kwargs)[source]#
__call__(state, **kwargs)[source]#

Call self as a function.

Return type:

Union[Array, ndarray, bool, number, bool, int, float, complex]

class ComputeFn(*args, **kwargs)[source]#
__call__(state, neighbor: NeighborList = None, **kwargs) Any[source]#

Call self as a function.

Return type:

Any