scverse / scverse/spatialdata-tutorials

Confusion of labels and images in labels_shapes_interchangeability.ipynb

オープン
#146 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Jupyter Notebook
スター
67
フォーク
26
平均マージ
4分
マージ済み PR(30日)
1

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

notebooks/examples/labels_shapes_interchangeability.ipynb を開き、11 行目付近の導入文と 265 行目付近に示されている変換を比較します。return_regions_as_labels=True によって例がどのように変わるかを確認し、shapes から labels への文書化された動作が明示的になるようにノートブックのテキストまたは例を更新して、レンダリングされたチュートリアルに一貫性があることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jupyter-notebook
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。