Perform each operation only in the correct formats
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với bình luận SciPy issue được liên kết và thread scipy-dev, sau đó so sánh hành vi được đề xuất cho các phép chuyển đổi giữa DOK, COO và CSD được mô tả ở đây. Tiêu chí hoàn thành chưa được chỉ định; issue cần một thiết kế được thống nhất về việc thao tác nào chấp nhận hoặc trả về từng định dạng, bao gồm cả việc các thao tác ghi có yêu cầu chuyển đổi DOK tường minh hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Based on https://github.com/scipy/scipy/issues/8162#issuecomment-344469036 I'm opening this issue in order to debate the merits and demerits of writing multiple implementations for every operation.
I'm specifically referring to the third bullet point in that comment, quoted below:
It'll remain important to give users a choice of the sparse storage format for efficiency reasons, but we'll want a design that doesn't guarantee that all operations on a given format will produce results of the same format. This is especially relevant when considering operations that produce results with different dimensions than the input, like slicing or extracting a diagonal.
I'm taking this to mean that we don't want to implement every single operation for every single format, we can convert to and return the most appropriate type.
I believe this is wise advice, on the whole. For example:
- Writing/modification is best done in DOK. We could require that users do
arr.asformat('dok')before writing to an array. - Elemwise is best done in CSD or COO (still have some Numba kinks to figure out for CSD). We could automatically convert to and return objects of these formats.
- Reductions are best done in CSD (which basically makes them equivalent to
ufunc.reduceat), but will usually return COO. - Slicing is extremely inefficient in DOK, but can be done after conversion to COO, for example. CSD slicing is also easy.
triu,tril,nonzeroare best in COO, and essentially require conversion before they're actually used.
On the whole, I'd like for these conversions to be automatic. Writing is the only thing I can think of that will require explicit conversion to DOK.
Edit: Link to parallel SciPy-dev thread: https://mail.python.org/pipermail/scipy-dev/2018-May/022834.html
- Ngôn ngữ chính
- Python
- Star
- 670
- Fork
- 167
- Merge trung bình
- 3 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pydata/sparse
-
Bug: full einsum contractions upcast the dtype and count booleansCó thể đã có người làm @RaphaelFakhri đã nhận 17 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
BUG: ufunc outer rejects Python scalar and sequence operandsCó thể đã có người làm @nawaaaaaAaar đã nhận 29 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug: slices with a negative step and a negative stop return wrong elementsCó thể đã có người làm @JoeyTan21 đã nhận 19 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 75/100
pydata/sparse#1019 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
BUG: matmul fails with zero-length broadcast batch dimensionsCó thể đã có người làm @nawaaaaaAaar đã nhận 29 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 40/100
Maintainer thường phản hồi trong vòng 2 ngày
-
BUG: zero-length tensor contractions ignore requested output typesCó thể đã có người làm @nawaaaaaAaar đã nhận 29 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của pydata/sparse
Issue tương tự
-
needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
flashinfer-ai/flashinfer#9803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
cuadrao-ai/argus#2328 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
nikhilb2/simple_invoicing#907 ·