Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
]
Expand Down Expand Up @@ -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__",
Expand Down
4 changes: 2 additions & 2 deletions src/u_stats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/u_stats/statistics/ustats.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

__all__ = [
"UStats",
"U_stats_loop",
"u_stats_loop",
]


Expand Down Expand Up @@ -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).

Expand Down