From 7b0094995578c44b69e28b9b9698231ef9ef0a4e Mon Sep 17 00:00:00 2001 From: ZRQ Date: Fri, 4 Jul 2025 19:45:31 +0800 Subject: [PATCH 1/2] fix: rename U_stats_loop to u_stats_loop for consistency --- README.md | 2 +- src/u_stats/__init__.py | 2 +- src/u_stats/statistics/ustats.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ee1e014..b14a4d2 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ Class-based interface for V-statistics computation with advanced features. **Parameters and Methods:** Same as `UStats` -#### `U_stats_loop(expression)` +#### `u_stats_loop(tensors, expression)` Reference implementation using explicit loops (for validation and small computations). **Note:** This class is primarily for testing and educational purposes. Use `UStats` for production code. diff --git a/src/u_stats/__init__.py b/src/u_stats/__init__.py index 480eea4..5a91ee7 100644 --- a/src/u_stats/__init__.py +++ b/src/u_stats/__init__.py @@ -40,7 +40,7 @@ "set_backend", "get_backend", ] -from .statistics import UStats, VStats, U_stats_loop +from .statistics import UStats, VStats, u_stats_loop from ._utils import set_backend, Backend, get_backend from typing import List, Tuple from ._utils import Inputs, Outputs diff --git a/src/u_stats/statistics/ustats.py b/src/u_stats/statistics/ustats.py index 8b2f6cf..58cabd9 100644 --- a/src/u_stats/statistics/ustats.py +++ b/src/u_stats/statistics/ustats.py @@ -42,7 +42,7 @@ __all__ = [ "UStats", - "U_stats_loop", + "u_stats_loop", ] @@ -455,7 +455,7 @@ def complexity( return info.scaling, info.flops, info.largest_intermediate -def U_stats_loop(tensors: List[np.ndarray], expression: List[List[int]] | str) -> float: +def u_stats_loop(tensors: List[np.ndarray], expression: List[List[int]] | str) -> float: """ Compute U-statistics using explicit loops (reference implementation). From b10fd344da6b91ff75531c1d61cecacee8b7eb10 Mon Sep 17 00:00:00 2001 From: ZRQ Date: Fri, 4 Jul 2025 19:45:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?bump:=20version=200.7.4=20=E2=86=92=200.7.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ pyproject.toml | 4 ++-- src/u_stats/__init__.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 061cf3e..f111236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.7.5 (2025-07-04) + +### Fix + +- rename U_stats_loop to u_stats_loop for consistency + ## 0.7.4 (2025-07-04) ### Fix diff --git a/pyproject.toml b/pyproject.toml index 2cdafc1..de7d679 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "u-stats" -version = "0.7.4" +version = "0.7.5" authors = [ {name = "Ruiqi Zhang", email = "zrq1706@outlook.com"} ] @@ -106,7 +106,7 @@ ignore_missing_imports = true name = "cz_conventional_commits" tag_format = "$version" version_scheme = "semver" -version = "0.7.4" +version = "0.7.5" version_files = [ "pyproject.toml:version", "src/u_stats/__init__.py:__version__", diff --git a/src/u_stats/__init__.py b/src/u_stats/__init__.py index 5a91ee7..b0fe9b0 100644 --- a/src/u_stats/__init__.py +++ b/src/u_stats/__init__.py @@ -25,7 +25,7 @@ """ __title__ = "u_stats" -__version__ = "0.7.4" +__version__ = "0.7.5" __description__ = "A Python package for efficient computation of U-statistics via tensor contraction." # noqa: E501 __author__ = "Zhang Ruiqi" __author_email__ = "zrq1706@outlook.com"