anomaly_pixel_f1_max — SPC anomaly_eval op

• Data kinds: video × video → table

• Call: import fullseye as fs; fs.ledger.anomaly_pixel_f1_max(scores, masks) (implementation को सीधे call करना हो तो import anomeval; anomeval.anomaly_pixel_f1_max(scores, masks), registry से लेना हो तो opsspc.get("anomaly_pixel_f1_max"))

उपयोग

anomaly score maps और defect masks से सभी thresholds पर pixel-स्तर का सर्वोत्तम F1 (table)।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

scores and masks are (n, H, W) (or lists / single 2-D maps); a pixel is predicted defective when its score is >= the threshold. The F1 = 2TP / (2TP + FP + FN) is evaluated exactly at every distinct score (sorted cumulative sums, no threshold grid); the highest threshold wins a tie. Returns f1, threshold, precision and recall at the maximum, n_pos and n_neg (pixels). It counts pixels, like the pixel AUROC, not regions (see anomaly_pro): a small defect weighs little however well it is found.

Raises ValueError on empty / mismatched / non-finite input, non-binary masks, or when the masks contain no defect pixel or no good pixel.

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• poc_patch_anomaly — py -3.11 examples/poc_patch_anomaly.py

वे अगले ops जिनसे type जुड़ता है (table को input के रूप में लेते हैं)

msa_anova_table · msa_gauge_rr · msa_bias_linearity · msa_attribute_agreement · gum_standard_uncertainty · gum_propagate · gum_expanded · gum_monte_carlo

इसी category के (anomaly_eval)

anomaly_image_auroc · anomaly_pixel_auroc · anomaly_pro · anomaly_region_overlap · anomaly_image_f1_max · anomaly_operating_point


*Provenance: anomeval.py — SPC operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.