index opindices → labelsimport fullseye as fs; fs.ledger.indices_to_labels(indices) (実装を直接呼ぶなら import reprconv; reprconv.indices_to_labels(indices)、台帳から引くなら opsreprconv.get("indices_to_labels"))添字 (N,) → 選択マスク labels。indices の出口(可逆)。
max(indices) + 1 長の 1-D ラベル配列を作り、選ばれた位置に 1 を置く。
indices -> labels -> indices は bit 一致(重複と順序を除く)。
逆向き labels -> indices -> labels は末尾の背景を落とす
(長さが max_index + 1 に切り詰まる)—— これは情報の損失であって
バグではないので、:func:labels_to_indices の docstring に量を書いてある。
Args: indices: (N,) の非負整数配列。 Returns: (max + 1,) の int64 ラベル配列(選択 = 1、背景 = 0)。 Raises: ValueError: 1-D でない / 負 / 空 / 上限超。
py -3.11 examples/representation_conversion.pylabels を入力に取れる)index)labels_to_indices · select_points
Provenance: reprconv.py — REPRCONV operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.