From d14fa16be1982fce1d9c8dffed6cf9371118afcc Mon Sep 17 00:00:00 2001 From: Koki MURAOKA Date: Mon, 16 Mar 2026 11:42:18 +0900 Subject: [PATCH 1/2] statisitcs -> statistics --- deepmd/dpmodel/descriptor/hybrid.py | 2 +- .../dpmodel/descriptor/make_base_descriptor.py | 2 +- deepmd/pd/model/descriptor/dpa1.py | 2 +- deepmd/pd/model/descriptor/se_a.py | 2 +- deepmd/pt/model/descriptor/dpa1.py | 2 +- deepmd/pt/model/descriptor/hybrid.py | 2 +- deepmd/pt/model/descriptor/se_a.py | 2 +- deepmd/pt/model/descriptor/se_r.py | 2 +- deepmd/pt/model/descriptor/se_t.py | 2 +- deepmd/tf/descriptor/descriptor.py | 4 ++-- deepmd/tf/descriptor/hybrid.py | 16 ++++++++-------- deepmd/tf/descriptor/loc_frame.py | 2 +- deepmd/tf/descriptor/se_a.py | 16 ++++++++-------- deepmd/tf/descriptor/se_a_ef.py | 2 +- deepmd/tf/descriptor/se_a_mask.py | 2 +- deepmd/tf/descriptor/se_atten.py | 6 +++--- deepmd/tf/descriptor/se_r.py | 12 ++++++------ deepmd/tf/descriptor/se_t.py | 16 ++++++++-------- 18 files changed, 47 insertions(+), 47 deletions(-) diff --git a/deepmd/dpmodel/descriptor/hybrid.py b/deepmd/dpmodel/descriptor/hybrid.py index 1b0065a232..b15fbc15d2 100644 --- a/deepmd/dpmodel/descriptor/hybrid.py +++ b/deepmd/dpmodel/descriptor/hybrid.py @@ -245,7 +245,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/dpmodel/descriptor/make_base_descriptor.py b/deepmd/dpmodel/descriptor/make_base_descriptor.py index 8ced802a5a..47245898ce 100644 --- a/deepmd/dpmodel/descriptor/make_base_descriptor.py +++ b/deepmd/dpmodel/descriptor/make_base_descriptor.py @@ -162,7 +162,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pd/model/descriptor/dpa1.py b/deepmd/pd/model/descriptor/dpa1.py index ca286ba945..8b36147aaf 100644 --- a/deepmd/pd/model/descriptor/dpa1.py +++ b/deepmd/pd/model/descriptor/dpa1.py @@ -600,7 +600,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pd/model/descriptor/se_a.py b/deepmd/pd/model/descriptor/se_a.py index 63b54626c6..ae2a6a68ab 100644 --- a/deepmd/pd/model/descriptor/se_a.py +++ b/deepmd/pd/model/descriptor/se_a.py @@ -264,7 +264,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pt/model/descriptor/dpa1.py b/deepmd/pt/model/descriptor/dpa1.py index df5f8297b9..4245195742 100644 --- a/deepmd/pt/model/descriptor/dpa1.py +++ b/deepmd/pt/model/descriptor/dpa1.py @@ -579,7 +579,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pt/model/descriptor/hybrid.py b/deepmd/pt/model/descriptor/hybrid.py index dc738563d3..55c1f9d2e3 100644 --- a/deepmd/pt/model/descriptor/hybrid.py +++ b/deepmd/pt/model/descriptor/hybrid.py @@ -237,7 +237,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pt/model/descriptor/se_a.py b/deepmd/pt/model/descriptor/se_a.py index 2d4aa40d05..aa81a052de 100644 --- a/deepmd/pt/model/descriptor/se_a.py +++ b/deepmd/pt/model/descriptor/se_a.py @@ -262,7 +262,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pt/model/descriptor/se_r.py b/deepmd/pt/model/descriptor/se_r.py index 0cf2e5b344..a6f154b0ce 100644 --- a/deepmd/pt/model/descriptor/se_r.py +++ b/deepmd/pt/model/descriptor/se_r.py @@ -364,7 +364,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/pt/model/descriptor/se_t.py b/deepmd/pt/model/descriptor/se_t.py index 6f8533fb7c..f9f138df53 100644 --- a/deepmd/pt/model/descriptor/se_t.py +++ b/deepmd/pt/model/descriptor/se_t.py @@ -289,7 +289,7 @@ def enable_compression( table_stride_2: float = 0.1, check_frequency: int = -1, ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/tf/descriptor/descriptor.py b/deepmd/tf/descriptor/descriptor.py index b8862625e6..9d050d723d 100644 --- a/deepmd/tf/descriptor/descriptor.py +++ b/deepmd/tf/descriptor/descriptor.py @@ -140,7 +140,7 @@ def compute_input_stats( input_dict: dict[str, list[np.ndarray]], **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters @@ -228,7 +228,7 @@ def enable_compression( check_frequency: int = -1, suffix: str = "", ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters diff --git a/deepmd/tf/descriptor/hybrid.py b/deepmd/tf/descriptor/hybrid.py index 3147f0b6b7..7731fff1b2 100644 --- a/deepmd/tf/descriptor/hybrid.py +++ b/deepmd/tf/descriptor/hybrid.py @@ -144,7 +144,7 @@ def compute_input_stats( real_natoms_vec: list | None = None, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- @@ -183,22 +183,22 @@ def compute_input_stats( ) def merge_input_stats(self, stat_dict: dict[str, float]) -> None: - """Merge the statisitcs computed from compute_input_stats to obtain the self.davg and self.dstd. + """Merge the statistics computed from compute_input_stats to obtain the self.davg and self.dstd. Parameters ---------- stat_dict - The dict of statisitcs computed from compute_input_stats, including: + The dict of statistics computed from compute_input_stats, including: sumr - The sum of radial statisitcs. + The sum of radial statistics. suma - The sum of relative coord statisitcs. + The sum of relative coord statistics. sumn The sum of neighbor numbers. sumr2 - The sum of square of radial statisitcs. + The sum of square of radial statistics. suma2 - The sum of square of relative coord statisitcs. + The sum of square of relative coord statistics. """ for ii in self.descrpt_list: ii.merge_input_stats(stat_dict) @@ -315,7 +315,7 @@ def enable_compression( check_frequency: int = -1, suffix: str = "", ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters diff --git a/deepmd/tf/descriptor/loc_frame.py b/deepmd/tf/descriptor/loc_frame.py index 41d320d845..b96bbb1ec8 100644 --- a/deepmd/tf/descriptor/loc_frame.py +++ b/deepmd/tf/descriptor/loc_frame.py @@ -164,7 +164,7 @@ def compute_input_stats( input_dict: dict, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- diff --git a/deepmd/tf/descriptor/se_a.py b/deepmd/tf/descriptor/se_a.py index 6e6d7cd2d0..a788c8459c 100644 --- a/deepmd/tf/descriptor/se_a.py +++ b/deepmd/tf/descriptor/se_a.py @@ -355,7 +355,7 @@ def compute_input_stats( input_dict: dict, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- @@ -401,22 +401,22 @@ def compute_input_stats( self.merge_input_stats(stat_dict) def merge_input_stats(self, stat_dict: dict[str, Any]) -> None: - """Merge the statisitcs computed from compute_input_stats to obtain the self.davg and self.dstd. + """Merge the statistics computed from compute_input_stats to obtain the self.davg and self.dstd. Parameters ---------- stat_dict - The dict of statisitcs computed from compute_input_stats, including: + The dict of statistics computed from compute_input_stats, including: sumr - The sum of radial statisitcs. + The sum of radial statistics. suma - The sum of relative coord statisitcs. + The sum of relative coord statistics. sumn The sum of neighbor numbers. sumr2 - The sum of square of radial statisitcs. + The sum of square of radial statistics. suma2 - The sum of square of relative coord statisitcs. + The sum of square of relative coord statistics. """ all_davg = [] all_dstd = [] @@ -452,7 +452,7 @@ def enable_compression( check_frequency: int = -1, suffix: str = "", ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/tf/descriptor/se_a_ef.py b/deepmd/tf/descriptor/se_a_ef.py index 7662738cc4..feaf1ae844 100644 --- a/deepmd/tf/descriptor/se_a_ef.py +++ b/deepmd/tf/descriptor/se_a_ef.py @@ -176,7 +176,7 @@ def compute_input_stats( input_dict: dict, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- diff --git a/deepmd/tf/descriptor/se_a_mask.py b/deepmd/tf/descriptor/se_a_mask.py index 2060ec9de2..1502bf4e36 100644 --- a/deepmd/tf/descriptor/se_a_mask.py +++ b/deepmd/tf/descriptor/se_a_mask.py @@ -234,7 +234,7 @@ def compute_input_stats( input_dict: dict, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- diff --git a/deepmd/tf/descriptor/se_atten.py b/deepmd/tf/descriptor/se_atten.py index a10484724d..6192308762 100644 --- a/deepmd/tf/descriptor/se_atten.py +++ b/deepmd/tf/descriptor/se_atten.py @@ -347,7 +347,7 @@ def compute_input_stats( real_natoms_vec: list | None = None, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- @@ -432,7 +432,7 @@ def enable_compression( suffix: str = "", tebd_suffix: str = "", ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- @@ -2362,7 +2362,7 @@ def enable_compression( suffix: str = "", tebd_suffix: str = "", ) -> None: - """Reveive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Reveive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/tf/descriptor/se_r.py b/deepmd/tf/descriptor/se_r.py index 473b9c8598..1a0b95c459 100644 --- a/deepmd/tf/descriptor/se_r.py +++ b/deepmd/tf/descriptor/se_r.py @@ -255,7 +255,7 @@ def compute_input_stats( input_dict: dict, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- @@ -288,18 +288,18 @@ def compute_input_stats( self.merge_input_stats(stat_dict) def merge_input_stats(self, stat_dict: dict[str, Any]) -> None: - """Merge the statisitcs computed from compute_input_stats to obtain the self.davg and self.dstd. + """Merge the statistics computed from compute_input_stats to obtain the self.davg and self.dstd. Parameters ---------- stat_dict - The dict of statisitcs computed from compute_input_stats, including: + The dict of statistics computed from compute_input_stats, including: sumr - The sum of radial statisitcs. + The sum of radial statistics. sumn The sum of neighbor numbers. sumr2 - The sum of square of radial statisitcs. + The sum of square of radial statistics. """ all_davg = [] all_dstd = [] @@ -329,7 +329,7 @@ def enable_compression( check_frequency: int = -1, suffix: str = "", ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- diff --git a/deepmd/tf/descriptor/se_t.py b/deepmd/tf/descriptor/se_t.py index 592038af29..a1ba47a36b 100644 --- a/deepmd/tf/descriptor/se_t.py +++ b/deepmd/tf/descriptor/se_t.py @@ -238,7 +238,7 @@ def compute_input_stats( input_dict: dict, **kwargs: Any, ) -> None: - """Compute the statisitcs (avg and std) of the training data. The input will be normalized by the statistics. + """Compute the statistics (avg and std) of the training data. The input will be normalized by the statistics. Parameters ---------- @@ -284,22 +284,22 @@ def compute_input_stats( self.merge_input_stats(stat_dict) def merge_input_stats(self, stat_dict: dict[str, Any]) -> None: - """Merge the statisitcs computed from compute_input_stats to obtain the self.davg and self.dstd. + """Merge the statistics computed from compute_input_stats to obtain the self.davg and self.dstd. Parameters ---------- stat_dict - The dict of statisitcs computed from compute_input_stats, including: + The dict of statistics computed from compute_input_stats, including: sumr - The sum of radial statisitcs. + The sum of radial statistics. suma - The sum of relative coord statisitcs. + The sum of relative coord statistics. sumn The sum of neighbor numbers. sumr2 - The sum of square of radial statisitcs. + The sum of square of radial statistics. suma2 - The sum of square of relative coord statisitcs. + The sum of square of relative coord statistics. """ all_davg = [] all_dstd = [] @@ -335,7 +335,7 @@ def enable_compression( check_frequency: int = -1, suffix: str = "", ) -> None: - """Receive the statisitcs (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ---------- From e1bb5b0ad7edfeba8102e8e19f3f71772c3edc02 Mon Sep 17 00:00:00 2001 From: Koki MURAOKA Date: Mon, 16 Mar 2026 13:35:25 +0900 Subject: [PATCH 2/2] one more typo --- deepmd/tf/descriptor/se_atten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepmd/tf/descriptor/se_atten.py b/deepmd/tf/descriptor/se_atten.py index 6192308762..0058763466 100644 --- a/deepmd/tf/descriptor/se_atten.py +++ b/deepmd/tf/descriptor/se_atten.py @@ -2362,7 +2362,7 @@ def enable_compression( suffix: str = "", tebd_suffix: str = "", ) -> None: - """Reveive the statistics (distance, max_nbor_size and env_mat_range) of the training data. + """Receive the statistics (distance, max_nbor_size and env_mat_range) of the training data. Parameters ----------