Skip to content

ENH: dpnp.histogram fallback; tests #802

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 3 commits into from
Aug 2, 2021
Merged

Conversation

samir-nasibli
Copy link

Description

  • fallback for dpnp.histogram
  • tests (some numpy original tests, while we have issue with them)

Tests

  • pasta some numpy original tests to tests/test_histograms.py, while we have issue with numpy testsing
tests/test_histograms.py::TestHistogram::test_simple PASSED
tests/test_histograms.py::TestHistogram::test_one_bin PASSED
tests/test_histograms.py::TestHistogram::test_density PASSED
tests/test_histograms.py::TestHistogram::test_arr_weights_mismatch PASSED 

@samir-nasibli samir-nasibli requested a review from shssf July 30, 2021 11:28
]


def histogram(a, bins=10, range=None, normed=None, weights=None, density=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please move this code into dpnp_iface_statistics.py?

Copy link
Author

Choose a reason for hiding this comment

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

Logically and due the the numpy's division by modules histogram should not be in dpnp_iface_statistics.py.
However, if it's required I will add it there.

@shssf shssf merged commit 35c12e2 into master Aug 2, 2021
@shssf shssf deleted the samir-nasibli/enh/histogram branch August 2, 2021 14:56
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.

2 participants