mean(), anyNA(), and members of "Summary" group generic should "untranspose"
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 32/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- r
- 領域
- data, performance
研究方向
先找出 DelayedArray 物件的 mean()、anyNA() 與 "Summary" 群組泛型的實作,接著檢查 DelayedAperm 與 simplify()。追蹤 issue 中描述的延遲操作主幹,並判斷如何在計算前套用反向 aperm()。當簡化縮短樹狀結構時,這些操作仍能保留其結果,同時避免不必要的延遲轉置,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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().
- 主要語言
- R
- 星號
- 29
- 分支
- 12
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Bioconductor/DelayedArray 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 38/100
Bioconductor/DelayedArray#129 · 11 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
Bioconductor/DelayedArray#127 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
Bioconductor/DelayedArray#125 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 45/100
Bioconductor/DelayedArray#123 ·
-
難度 5/5 一週以上 新手友好度 20/100
Bioconductor/DelayedArray#122 ·
查看 Bioconductor/DelayedArray 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
easystats/performance#950 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
briandconnelly/airnow#9 ·
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
OHDSI/CohortConstructor#774 ·