xnn.common.train.loggers.metric_units#

xnn.common.train.loggers.metric_units(energy_unit='eV', length_unit='A')[source]#

Units of the scored quantities (energy per atom, forces, stress, dipoles, …).

Parameters:
  • energy_unit (str, optional) – Unit of the data’s energies. Defaults to "eV".

  • length_unit (str, optional) – Unit of the data’s positions. Defaults to "A" (Angstrom).

Returns:

Quantity names ("energy", "forces", …) mapped to units, e.g. {"energy": "eV/atom", "forces": "eV/A", ...}.

Return type:

dict of str to str