-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
ENH: stats: end-to-end array-API support for NHSTs with chi-squared null distribution #20782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
array_args = [np.asarray(arg) for arg in array_args] | ||
out = _f(*array_args, *other_args, **kwargs) | ||
return _xp.asarray(out) | ||
_f = _generic_implementations[f_name](xp=xp, spx=spx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reworked _generic_implementations
so we have more flexibility. Previously, _generic_implementations
contained functions that had to work for any backend; now, _generic_implementations
contains functions that return a function if possible/desired or None otherwise.
I've checked locally and all tests pass with CuPy now except So this is ready for review, but there are minor things to change before merge even if CI passes. Update: CI failure is unrelated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mdhaber LGTM
So this is ready for review, but there are minor things to change before merge even if CI passes. Update: CI failure is unrelated.
Just wanted to double check these had been done before pressing the button
Oops, yes, all done. Thanks! |
Reference issue
Toward gh-20544
Follow-up to gh-20777
What does this implement/fix?
Similar to gh-20777 but for hypothesis tests with a chi-squared null distribution.
Additional information
Technically I should probably be passing
symmetric=False
in all these calls to_get_pvalue
, butalternative='greater'
is specified explicitly, so it doesn't really matter.