MLX compatibility: Statistical functions

Aperta
#463 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Inizia eseguendo i test indicati: test_cumulative_sum, test_cumulative_prod, test_prod, test_std, test_sum e test_var. Segui i loro fallimenti attraverso il layer di compatibilità Python e confronta ogni wrapper con le signature di Array API e le regole sui dtype mostrate qui. Il lavoro è completato quando le discrepanze nelle keyword e i casi di promozione degli interi piccoli superano i test per tutte e sei le funzioni statistiche.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Array API MLX Analog Status Notes Test Node Result
cumulative_sum(x, /, *, axis=None, dtype=None, include_initial=False) cumsum(a, /, axis: int | None = None, *, reverse: bool = False, inclusive: bool = True, dtype: Dtype | None = None, stream=None) incompatible MLX lacks the include_initial keyword (raises TypeError) and skips the standard default-integer dtype promotion — a uint8 input stays uint8 instead of promoting to uint32. test_cumulative_sum Failed
cumulative_prod(x, /, *, axis=None, dtype=None, include_initial=False) cumprod(a, /, axis: int | None = None, *, reverse: bool = False, inclusive: bool = True, dtype: Dtype | None = None, stream=None) incompatible Same two issues as cumulative_sum: missing include_initial keyword and no default-integer dtype promotion (uint8 stays uint8 instead of uint32). test_cumulative_prod Failed
prod(x, /, *, axis=None, dtype=None, keepdims=False) prod(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, *, stream=None) incompatible MLX has no dtype keyword (raises TypeError) and does not promote small integer inputs to the standard default integer dtype (uint8 stays uint8 instead of uint32). test_prod Failed
std(x, /, *, axis=None, correction=0.0, keepdims=False) std(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream=None) incompatible MLX exposes ddof instead of the Array API's correction keyword, so passing correction raises a TypeError. test_std Failed
sum(x, /, *, axis=None, dtype=None, keepdims=False) sum(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, *, stream=None) incompatible MLX has no dtype keyword (raises TypeError) and does not promote small integer inputs to the standard default integer dtype (uint8 stays uint8 instead of uint32). test_sum Failed
var(x, /, *, axis=None, correction=0.0, keepdims=False) var(a, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream=None) incompatible MLX exposes ddof instead of the Array API's correction keyword, so passing correction raises a TypeError. test_var Failed
Lingua principale
Python
Stelle
131
Fork
49
Merge medio
2g 8h
PR unite (30g)
6

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di data-apis/array-api-compat

Tutte le issue di data-apis/array-api-compat

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.