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/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/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 480eea4..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" @@ -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).