Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mdhaber
Copy link
Contributor

@mdhaber mdhaber commented Oct 28, 2025

Reference issue

Toward gh-14651
Toward gh-20544

What does this implement/fix?

This vectorizes the implementation of scipy.stats.epps_singleton_2samp and prepares for array API translation.

Additional information

This relies on the _apply_over_batch decorator to vectorize xpx.cov, but I opened data-apis/array-api-extra#502 about vectorizing the implementation itself.

@mdhaber mdhaber added scipy.stats enhancement A new feature or improvement array types Items related to array API support and input array validation (see gh-18286) labels Oct 28, 2025
@lucascolley lucascolley added this to the 1.17.0 milestone Oct 29, 2025
@lucascolley lucascolley dismissed their stale review October 29, 2025 14:23

probably a false alarm

@j-bowhay j-bowhay merged commit 1f1eee1 into scipy:main Oct 29, 2025
50 of 52 checks passed
to be evaluated. It should be positive distinct numbers. The default
value (0.4, 0.8) is proposed in [1]_. Input must not have more than
one dimension.
axis : int or tuple of ints, default: None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops I missed this the default axis is 0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch. Fortunately, this renders correctly online (and with help).

image

In the past, I've added it because reviewers wanted to see it in the code, but because it's invisible to the user, I just copy-pasted from _xp_mean. Oops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

array types Items related to array API support and input array validation (see gh-18286) enhancement A new feature or improvement scipy.stats

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants