Use posterior functions where possible / avoid duplication of code
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
The issue names is_constant and n_pareto in loo, which duplicate helpers in posterior such as ps_tail_length. Grep loo's R sources for these definitions and compare each with the matching exported function in posterior, noting which ones are exact copies. Done means the duplicate definitions are removed in favour of calls to posterior, and the existing test suite still passes. Confirm the posterior version is suitable before replacing anything.
由索引模型根據 Issue 內容生成。
描述
Description
We have certain functions in loo that are more or less copies from code in posterior.
For loo v3.0.0, we need to inspect the loo code base and replace all function definitions that can be replaced by exporting the equivalent function from posterior. This avoids code duplication and reduces maintainability effort.
Example functions
is_constant(loo/posterior)posterior:::ps_tail_lengthvs.loo:::n_pareto
- 主要語言
- R
- 星號
- 159
- 分支
- 37
- 平均合併
- 20 小時 8 分鐘
- 30 天內合併 PR
- 7
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
stan-dev/loo 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 48/100
維護者通常 1 天內回覆
-
documentation
難度 3/5 1-2 天 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
維護者通常 1 天內回覆
-
Update output structure of `loo_compare` for subsampling case可能已有人在做 @florence-bockting 於 61 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 45/100
維護者通常 1 天內回覆
-
Clean up issues未關閉
難度 4/5 3-5 天 新手友好度 25/100
stan-dev/loo#388 · 1 個 reaction ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
REditorSupport/languageserver#833 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
Rdatatable/data.table#7952 ·
維護者通常 1 天內回覆
-
priority: could techdebt
難度 1/5 1-3 小時 新手友好度 82/100
-
難度 2/5 1-3 小時 新手友好度 65/100
microsoft/ML-For-Beginners#1061 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
Rapporteket/rapbase#535 ·