Skip to content

Add correction keyword argument to dpnp.std and dpnp.var #2300

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

Merged
merged 6 commits into from
Feb 10, 2025

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Feb 10, 2025

The PR proposes to add correction keyword argument to statistics functions, assuming dpnp.std, dpnp.var, dpnp.nanstd, dpnp.nanvar functions and dpnp.ndarray.std, dpnp.ndarray.var methods.

The keyword is mandated according to python array API. The corresponding muted tests are enabled in python array API compliance scope.

Also this PR adds improvements to the docstrings of functions from statistics interface.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

Copy link
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/pull/2300/index.html

@coveralls
Copy link
Collaborator

coveralls commented Feb 10, 2025

Coverage Status

coverage: 71.651% (+0.02%) from 71.629%
when pulling 6a4b1fa on add-correction-kw-to-std-var
into 63ce858 on master.

Copy link
Contributor

Array API standard conformance tests for dpnp=0.17.0dev6=py312he4f9c94_8 ran successfully.
Passed: 973
Failed: 0
Skipped: 27

Copy link
Collaborator

@vtavana vtavana left a comment

Choose a reason for hiding this comment

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

Thank you, @antonwolfy!

@antonwolfy antonwolfy merged commit f97b64c into master Feb 10, 2025
70 of 71 checks passed
@antonwolfy antonwolfy deleted the add-correction-kw-to-std-var branch February 10, 2025 16:44
github-actions bot added a commit that referenced this pull request Feb 10, 2025
The PR proposes to add `correction` keyword argument to statistics
functions, assuming `dpnp.std`, `dpnp.var`, `dpnp.nanstd`, `dpnp.nanvar`
functions and `dpnp.ndarray.std`, `dpnp.ndarray.var` methods.

The keyword is mandated according to python array API. The corresponding
muted tests are enabled in python array API compliance scope.

Also this PR adds improvements to the docstrings of functions from
statistics interface. f97b64c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants