Introducing `formulaic`, a high-performance `patsy` "competitor"
還沒有人認領這個 Issue。
評估
研究方向
此 issue 連結至 Formulaic 專案,並將其描述為針對大型 pandas DataFrames 的稀疏模型矩陣而重寫 patsy。請先檢視連結的專案與 patsy 的背景。未指定任何檔案、測試、要求的變更或完成條件,因此僅憑此 issue 無法執行這項工作。
由索引模型根據 Issue 內容生成。
描述
Greetings all,
Late last year I had the need to generate sparse model matrices from large pandas DataFrames (dense model matrices would not fit in memory for the dataset I was using). I originally set about trying to patch patsy, but the code was not set up to allow overriding individual methods, and since I felt it would be a didactic experience in any case, I decided to rewrite something like patsy from scratch. The result is Formulaic.
I wasn't expecting much more than the addition of sparse matrix support, but it seems I've also managed to improve the performance of model matrix generation by (in many cases) orders of magnitude, even beating R in many cases. I'm in the process of writing up documentation, and there is some low-hanging fruit in terms of improvements, but I'd love to get some eyes on the project, and would welcome feedback.
- 主要語言
- Python
- 星號
- 990
- 分支
- 113
- 平均合併
- 2 天 8 小時
- 30 天內合併 PR
- 3
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
pydata/patsy 的其他 Issue
-
VarLookupDict should implement __iter__, causes CPython crash when using statsmodels in marimo notebook可能已有人在做 @kouyouqi123 於 173 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
-
Add link to license in readme可能已有人在做 @zheng-guannan577 於 9 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 72/100
-
難度 1/5 1 小時以內 新手友好度 68/100
-
Nullable pandas dtypes crash in categorical handling: "Cannot interpret 'BooleanDtype' as a data type"可能已有人在做 @RaphaelFakhri 於 15 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 35/100
-
cc() truncates periodic coordinates for integer input with fractional bounds可能已有人在做 @ktz03 於 39 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 35/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 1 天內回覆
-
area:cli area:security enhancement priority:medium size:small
難度 2/5 1-3 小時 新手友好度 76/100
RonaldHensbergen/composable-data-stack#1338 ·
維護者通常 1 天內回覆
-
area:stdlib effort:S impact:med platform:linux type:bug
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
automated endpoint-dead needs-curation
難度 2/5 1-3 小時 新手友好度 76/100
almanac-data/climate-almanac#139 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
UKGovernmentBEIS/inspect_ai#6695 · 1 則留言 ·
維護者通常 1 天內回覆