deepmd.dpmodel.utils.env_mat_stat#
Classes#
A base class to store and calculate the statistics of the environment matrix. | |
Environmental matrix statistics for the se_a/se_r environmental matrix. |
Module Contents#
- class deepmd.dpmodel.utils.env_mat_stat.EnvMatStat[source]#
Bases:
deepmd.utils.env_mat_stat.EnvMatStatA base class to store and calculate the statistics of the environment matrix.
- compute_stat(env_mat: dict[str, deepmd.dpmodel.array_api.Array]) dict[str, deepmd.utils.env_mat_stat.StatItem][source]#
Compute the statistics of the environment matrix for a single system.
- class deepmd.dpmodel.utils.env_mat_stat.EnvMatStatSe(descriptor: deepmd.dpmodel.descriptor.Descriptor | deepmd.dpmodel.descriptor.DescriptorBlock)[source]#
Bases:
EnvMatStatEnvironmental matrix statistics for the se_a/se_r environmental matrix.
- Parameters:
- descriptor
DescriptororDescriptorBlock The descriptor of the model.
- descriptor
- iter(data: list[dict[str, numpy.ndarray | list[tuple[int, int]]]]) collections.abc.Iterator[dict[str, deepmd.utils.env_mat_stat.StatItem]][source]#
Get the iterator of the environment matrix.