scverse / scverse/spatialdata-tutorials
Confusion of labels and images in labels_shapes_interchangeability.ipynb
Nessuno ha ancora preso questa issue.
- Lingua principale
- Jupyter Notebook
- Stelle
- 67
- Fork
- 26
- Merge medio
- 4m
- PR unite (30g)
- 1
Descrizione
I just went through the vectorization/rasterization tutorial.
What I found confusing is that it starts by claiming to convert between shapes and labels:
https://github.com/scverse/spatialdata-notebooks/blob/7ce65b2f8a291fa21fdb1542b91518378726b51d/notebooks/examples/labels_shapes_interchangeability.ipynb#L11
But then, later, shapes are not converted to labels, but to images:
https://github.com/scverse/spatialdata-notebooks/blob/7ce65b2f8a291fa21fdb1542b91518378726b51d/notebooks/examples/labels_shapes_interchangeability.ipynb#L265
I wanted to convert shapes to labels, but it took me a while to realize I needed to set return_regions_as_labels=True.
I imagine that converting from shape to label is needed more often, because then you can use the labels to aggregate. Would it make sense to update the example to conversion into labels instead of images?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Direzione di ricerca
Apri notebooks/examples/labels_shapes_interchangeability.ipynb e confronta l’affermazione introduttiva vicino alla riga 11 con la conversione mostrata vicino alla riga 265. Verifica in che modo return_regions_as_labels=True modifica l’esempio, quindi aggiorna il testo del notebook o l’esempio in modo che il comportamento documentato da shapes a labels sia esplicito e verifica che il tutorial renderizzato sia coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter-notebook
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100