mean(), anyNA(), and members of "Summary" group generic should "untranspose"
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
- 32/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- r
- Lĩnh vực
- data, performance
Hướng nghiên cứu
Bắt đầu bằng cách xác định các phần triển khai của mean(), anyNA() và generic của nhóm "Summary" cho các đối tượng DelayedArray, sau đó kiểm tra DelayedAperm và simplify(). Theo dõi nhánh gốc của các thao tác trì hoãn được mô tả trong issue và xác định cách có thể áp dụng một aperm() đảo ngược trước khi tính toán. Được xem là hoàn thành khi các thao tác này vẫn giữ nguyên kết quả đồng thời tránh phép chuyển vị trì hoãn không cần thiết khi simplification rút ngắn cây.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Delayed transposition (t() or aperm()) significantly slows down block processing of a DelayedMatrix or DelayedArray object. However the result of block-processed operations like mean(), anyNA(), and members of the "Summary" group generic does not change if the input is transposed. So these operations should be smart enough to "untranspose" their input in order to be faster.
The exact algorithm for "untransposing" could be:
- Go up the tree of delayed ops in
xuntil a DelayedAperm op is found. Only climb the trunk of the tree i.e. start fromx@seedand go up only if there is exactly 1 "next seed", that is, if the current seed is a DelayedUnaryOp object. Stop on the first DelayedAperm op (i.e. the most recently applied DelayedAperm op), or when the next seed is no longer a DelayedUnaryOp object. - If no DelayedAperm op was found then there is nothing to do.
- If a DelayedAperm op is found, do
y <- aperm(x, ....)where the exactaperm()transformation is the reverse of this DelayedAperm op. The tree trunk inyshould be either shorter than the tree trunk inx(if the 2 DelayedAperm ops could be simplified) or longer (if they couldn't). If it's shorter then replacexwithybefore computingmean(),anyNA(), etc...
The advantage of this algo is that it doesn't need to know anything about the delayed ops found between the root of the tree and the first DelayedAperm op found on the trunk. It just relies on simplify().
- Ngôn ngữ chính
- R
- Star
- 29
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 Bioconductor/DelayedArray
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
Bioconductor/DelayedArray#129 · 11 bình luận ·
-
Custom delayed operations Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Bioconductor/DelayedArray#127 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Bioconductor/DelayedArray#125 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Bioconductor/DelayedArray#123 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Bioconductor/DelayedArray#122 ·
Tất cả issue của Bioconductor/DelayedArray
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
robjhyndman/forecast#1220 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
JamesHWade/deputy#192 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug triage_needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pharmaverse/rtables#1123 · 1 bình luận · 1 reaction ·