Why are extrema needed for ContinuousTerm?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- julia
- 領域
- performance
調査の方向性
Start by reading the schema implementation and the handling of ContinuousTerm, then reproduce the supplied benchmark and inspect where extrema is called for each term. Determine why those extrema are required and whether schema can avoid that work without changing its existing behavior; completion should include a benchmark or test showing the result.
索引モデルが issue の本文から書いたものです。
説明
As I was trying to improve the performances of FixedEffectModels.jl, I noted that schema accounted for a substantial amount of time:
N = 10_000_000
df = (y = rand(N), x1 = rand(N), x2 = rand(N))
@time StatsModels.schema(@formula(y~x1+x2), df)
# 0.151931 seconds (49 allocations: 3.625 KiB)
The reason is that schema calls extrema on each term in the formula:
@time extrema(df.y), extrema(df.x1), extrema(df.x2)
# 0.127862 seconds (23 allocations: 1.422 KiB, 5.44% compilation time)
Is there a way to avoid computing these extrema? Why are they needed to begin with? (btw, calling extrema is slower than calling separately minimum and maximum (see https://github.com/JuliaLang/julia/issues/31442)).
- 主要言語
- Julia
- スター
- 250
- フォーク
- 35
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaStats/StatsModels.jl のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
JuliaStats/StatsModels.jl#328 · コメント 1 件 ·
-
Cell mean coding?オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
JuliaStats/StatsModels.jl#351 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
JuliaStats/StatsModels.jl#329 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
JuliaStats/StatsModels.jl#318 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
JuliaStats/StatsModels.jl#316 ·
JuliaStats/StatsModels.jl の issue をすべて見る
似ている issue
-
TSDAE's docstring implies a theta argument it does not take対応中かも @singhharsh1708 が今日担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
SciML/PETScDiffEq.jl#282 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 半日 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SciML/SciMLBase.jl#1643 ·
メンテナーはふだん 2 日以内に返信
-
authority-vechtstromen ready-for-agent
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
Deltares/Ribasim-NL#890 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信