score oplabels2d × labels2d → tableimport fullseye as fs; fs.ledger.seg_dice_jaccard(labels_pred, labels_true, *, background: 'int' = 0, per_label: 'bool' = False) -> 'Dict[str, object]' (実装を直接呼ぶなら import segeval; segeval.seg_dice_jaccard(labels_pred, labels_true, *, background: 'int' = 0, per_label: 'bool' = False) -> 'Dict[str, object]'、台帳から引くなら opssegmentation.get("seg_dice_jaccard"))Dice と Jaccard —— マスク(背景でない画素の和)で 1 組、per_label なら真のラベルごとに最大重なりの相手と。
マスク: intersection = 両方とも背景でない画素数、size_pred / size_true、union。
Jaccard J = ∩/∪、Dice D = 2∩/(|P|+|T|)。両方空なら 1(何も無いと正しく言った)。恒等式 D = 2J/(1+J)(門)。
per_label=True で labels(背景でない真のラベル)、per_dice / per_jaccard(相手が無ければ 0)、
mean_dice / mean_jaccard を足す。
py -3.11 examples/poc_active_contours.pypy -3.11 examples/poc_am_thermal_to_ct.pypy -3.11 examples/poc_graph_hierarchy_segmentation.pypy -3.11 examples/poc_segmentation_gauntlet.pypy -3.11 examples/poc_sem_wafer_defect_edge_bias.pytable を入力に取れる)score)seg_confusion_table · seg_boundary_f · seg_hausdorff · seg_mean_surface_distance · seg_under_over_segmentation · seg_object_counts_match · seg_score_card
Provenance: segeval.py — SEGMENTATION operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.