Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

ENH: add `quantile`

未關閉
#340 38 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
28/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
python, scikit-learn
領域
data

研究方向

未指定實作檔案或測試。先從此 RFC 的討論以及連結的 array-api 和 scikit-learn issues 開始,然後在找出相關實作和測試之前,明確方法、權重和 NaN 處理方面的預期範圍。達成共識的範圍,並具有涵蓋程度相符的一致分位數行為,即視為完成。

由索引模型根據 Issue 內容生成。

描述

enhancement new function

It was decided not to add quantile to array-api (https://github.com/data-apis/array-api/issues/795), partly because scipy added array API support to their quantile (https://github.com/scipy/scipy/pull/22352) and partly due to complications (many methods, weight support, nan support).

This RFC is mostly motivated by usage in scikit-learn (as seen from https://github.com/data-apis/array-api/issues/795#issuecomment-2090852426 its not used much in other packages).

Although scipy does have an array API quantile, due to our min scipy version, we are currently not able to use it (e.g., https://github.com/scikit-learn/scikit-learn/pull/31671).

More generally, it seems to be a commonly enough used function (which is implemented many array libraries) to warrant considering adding it to here, and having a consistent, single source.

Not sure who would be interested but maybe:
cc @betatim @ogrisel @lorentzenchr (and @rgommers who suggested it)

主要語言
Python
星號
33
分支
33
平均合併
1 小時 37 分鐘
30 天內合併 PR
38

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

data-apis/array-api-extra 的其他 Issue

查看 data-apis/array-api-extra 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。