Air pollution tutorial should show path to "vectorization"
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 673
- フォーク
- 229
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The air polution tutorial has a "vectorized" function to calculte the AIQ (IIRC). This can be vectorized using searchsorted (which is a bit much work, but not too tricky).
I am also almost completely certain that it can also be replaced with a single call to np.interp1d.
Having the "vectorize" version seems good, but doesn't fully leverage the concepts that NumPy provides. I think it would be great arc to keep it, but then also show the final interp and maybe even the searchsorted idea. (I honestly don't like stopping at vectorize becuzse it makes seems that vectorize is a common approach, when I consider it more of a fallback solution – whether used a lot in practice or not.)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
大気汚染チュートリアルから始め、AQI の計算に使用されている既存のベクトル化関数を見つけます。チュートリアルで、searchsorted と補間の考え方と並べて vectorize アプローチをどのように提示できるかを比較します。チュートリアルがこれらの代替手段を説明し、vectorize が唯一の方法であると示唆しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- numpy
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100