More informative than ROC when the classes are imbalanced, which they are here by construction: a 90th-percentile threshold makes only 10% of stations patches. ROC uses the false positive rate, whose denominator is the large non-patch class, so a model can look excellent while most of its positive predictions are still wrong. Precision asks the question that actually matters for a patch map — of the places called patch, how many are?
Arguments
- predictions
the
predictionselement of afit_patch_model()result- path
where to write a PNG;
NULLreturns the plot instead