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

API: Refactor argmax and argmin #614

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

mtsokol
Copy link
Collaborator

@mtsokol mtsokol commented Dec 22, 2023

Hi @hameerabbasi,

This PR refactors the current implementation of argmax and argmin. It removes "only 0.0 fill value" and "all non-fill values greater/less than the fill value" constraints. It also makes the core of the function jittable.

First #613 needs to be merged.

@mtsokol mtsokol self-assigned this Dec 22, 2023
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Merging #614 (cae0fe7) into master (f522926) will decrease coverage by 0.69%.
The diff coverage is 55.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #614      +/-   ##
==========================================
- Coverage   91.55%   90.86%   -0.69%     
==========================================
  Files          20       20              
  Lines        3516     3546      +30     
==========================================
+ Hits         3219     3222       +3     
- Misses        297      324      +27     

sparse/_coo/common.py Fixed Show fixed Hide fixed
sparse/_coo/common.py Show resolved Hide resolved
sparse/_coo/common.py Fixed Show fixed Hide fixed
@hameerabbasi
Copy link
Collaborator

I think the comments from the GitHub bot are valid in this PR and should be addressed.

@mtsokol mtsokol force-pushed the new-argmax-argmin branch from 4f56751 to cae0fe7 Compare January 2, 2024 09:21
@mtsokol
Copy link
Collaborator Author

mtsokol commented Jan 2, 2024

I think the comments from the GitHub bot are valid in this PR and should be addressed.

Hi @hameerabbasi,
Now PR is ready from my side.

@hameerabbasi hameerabbasi merged commit b12d51d into pydata:master Jan 2, 2024
12 of 13 checks passed
@mtsokol mtsokol deleted the new-argmax-argmin branch January 2, 2024 09:29
@hameerabbasi
Copy link
Collaborator

Thanks for your awesome work on this @mtsokol.

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