ggmisclass_single: Single ggplot of misclassification

Description Usage Arguments Details Value

Description

Plot cross-validation sensitivity, specificity, and misclassification rate based on probability threshold for classifying a reach as non-perennial.

Usage

1
2
3
4
5
ggmisclass_single(
  in_predictions = NULL,
  in_rftuned = NULL,
  spatial_rsp = FALSE
)

Arguments

in_predictions

Either:

  1. a PredictionClassif or

  2. a data.table of predictions for a set of CV repetitions as formatted by analyze_benchmark.

in_rftuned

Output from selecttrain_rf; list containing inner and outer resampling results + task.

spatial_rsp

(boolean) whether to use spatial or non-spatial cross-validation results

Details

in_rftuned is only needed if in_predictions is not provided.

Value

list containing a ggplot and the threshold for which sensitivity == specificity (numeric)


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.