Skip to content
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

add digitize/bucketize #928

Merged
merged 12 commits into from
Apr 20, 2022
Merged

add digitize/bucketize #928

merged 12 commits into from
Apr 20, 2022

Conversation

mtar
Copy link
Collaborator

@mtar mtar commented Mar 4, 2022

Description

implementation of digitize and bucketize

Issue/s resolved: #926

Changes proposed:

  • add bucketize()
  • add digitize()

Type of change

-New Feature

Memory requirements

Performance

Due Diligence

  • All split configurations tested
  • Multiple dtypes tested in relevant functions
  • Documentation updated (if needed)
  • Updated changelog.md under the title "Pending Additions"

Does this change modify the behaviour of other functions? If so, which?

no

@mtar mtar changed the title implement digitize/bucketize add digitize/bucketize Mar 4, 2022
@codecov
Copy link

codecov bot commented Mar 4, 2022

Codecov Report

Merging #928 (316ef97) into main (759dd76) will decrease coverage by 0.00%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##             main     #928      +/-   ##
==========================================
- Coverage   95.47%   95.47%   -0.01%     
==========================================
  Files          64       64              
  Lines        9877     9898      +21     
==========================================
+ Hits         9430     9450      +20     
- Misses        447      448       +1     
Flag Coverage Δ
gpu 94.56% <95.23%> (+<0.01%) ⬆️
unit 91.09% <95.23%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
heat/core/statistics.py 97.54% <95.23%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 759dd76...316ef97. Read the comment docs.

@mtar mtar marked this pull request as ready for review March 10, 2022 14:43
heat/core/statistics.py Outdated Show resolved Hide resolved
heat/core/statistics.py Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented Mar 28, 2022

CodeSee Review Map:

Review these changes using an interactive CodeSee Map

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

Copy link
Contributor

@ClaudiaComito ClaudiaComito left a comment

Choose a reason for hiding this comment

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

@mtar thanks for this. I'm ready to approve it, maybe mention in the documentation that bins and boundaries cannot be distributed?

heat/core/statistics.py Outdated Show resolved Hide resolved
@mtar mtar requested a review from ClaudiaComito April 8, 2022 10:11
x : DNDarray
The input array
bins : DNDarray or torch.Tensor
A 1-dimensional array containing a monotonic sequence describing the bin boundaries.
Copy link
Contributor

Choose a reason for hiding this comment

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

cannot be distributed

Copy link
Contributor

@ClaudiaComito ClaudiaComito left a comment

Choose a reason for hiding this comment

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

Thanks @mtar !

@ClaudiaComito ClaudiaComito merged commit 416006e into main Apr 20, 2022
@ClaudiaComito ClaudiaComito deleted the features/926-digitize-bucketize branch April 20, 2022 08:51
@mtar mtar removed the PR talk label Sep 11, 2023
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.

implement digitize/bucketize
2 participants