Perform each operation only in the correct formats
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia dal commento collegato dell’issue di SciPy e dal thread di scipy-dev, quindi confronta il comportamento proposto per le conversioni tra DOK, COO e CSD descritto qui. I criteri di completamento non sono specificati; l’issue richiede un design concordato che stabilisca quali operazioni accettano o restituiscono ciascun formato, incluso se le scritture richiedono una conversione esplicita a DOK.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Based on https://github.com/scipy/scipy/issues/8162#issuecomment-344469036 I'm opening this issue in order to debate the merits and demerits of writing multiple implementations for every operation.
I'm specifically referring to the third bullet point in that comment, quoted below:
It'll remain important to give users a choice of the sparse storage format for efficiency reasons, but we'll want a design that doesn't guarantee that all operations on a given format will produce results of the same format. This is especially relevant when considering operations that produce results with different dimensions than the input, like slicing or extracting a diagonal.
I'm taking this to mean that we don't want to implement every single operation for every single format, we can convert to and return the most appropriate type.
I believe this is wise advice, on the whole. For example:
- Writing/modification is best done in DOK. We could require that users do
arr.asformat('dok')before writing to an array. - Elemwise is best done in CSD or COO (still have some Numba kinks to figure out for CSD). We could automatically convert to and return objects of these formats.
- Reductions are best done in CSD (which basically makes them equivalent to
ufunc.reduceat), but will usually return COO. - Slicing is extremely inefficient in DOK, but can be done after conversion to COO, for example. CSD slicing is also easy.
triu,tril,nonzeroare best in COO, and essentially require conversion before they're actually used.
On the whole, I'd like for these conversions to be automatic. Writing is the only thing I can think of that will require explicit conversion to DOK.
Edit: Link to parallel SciPy-dev thread: https://mail.python.org/pipermail/scipy-dev/2018-May/022834.html
- Lingua principale
- Python
- Stelle
- 670
- Fork
- 167
- Merge medio
- 3g 4h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pydata/sparse
-
Bug: full einsum contractions upcast the dtype and count booleansForse già presa @RaphaelFakhri l’ha presa 17 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
BUG: ufunc outer rejects Python scalar and sequence operandsForse già presa @nawaaaaaAaar l’ha presa 29 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni
-
Bug: slices with a negative step and a negative stop return wrong elementsForse già presa @JoeyTan21 l’ha presa 19 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 75/100
pydata/sparse#1019 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
BUG: matmul fails with zero-length broadcast batch dimensionsForse già presa @nawaaaaaAaar l’ha presa 29 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 40/100
I maintainer di solito rispondono entro 2 giorni
-
BUG: zero-length tensor contractions ignore requested output typesForse già presa @nawaaaaaAaar l’ha presa 29 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di pydata/sparse
Issue simili
-
needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
flashinfer-ai/flashinfer#9803 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 89/100
cuadrao-ai/argus#2328 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
nikhilb2/simple_invoicing#907 ·