recompute_from_review#

geowombat.detect.recompute_from_review(review_input, class_col='class_name', layer='detections_review')[source]#

Recompute metrics after a human has edited reviewer_label.

The reviewer is expected to fill reviewer_label with one of: 'TP', 'FP', 'FN', or 'unclear' (case-insensitive). Rows where the label is blank are treated as the automatic status. 'unclear' rows are excluded from the metrics entirely.

Parameters:
review_inputstr, Path, or GeoDataFrame

Reviewed GeoPackage path or in-memory GeoDataFrame.

class_colstr

Column to use for per-class breakdown.

layerstr

GeoPackage layer if reading from disk.

Returns:
dict

Per-class and overall counts/precision/recall/F1 after incorporating human review.