Description Usage Arguments Details Value
Get misclassification error, sensitivity, specificity, precision, and other classification performance statistics for different subsets (i.e., bins) of the dataset.
1 2 3 4 5 6 7 8 9 10 11 |
in_predictions |
a data.table of predictions for a set of CV repetitions. |
in_gaugestats |
data.table with additional columns to use in binning if not included as predictor variables in model. |
binvar |
(character) column that will be used to define bins. |
binfunc |
(character) binning approach. One of 'manual', 'equal_length', 'equal_freq'. See bin_dt. |
binarg |
(numeric) binning argument, depends on binning approach. See bin_dt. |
interthresh |
(numeric) flow intermittence probability threshold above which to classify records as non-perennial |
spatial_rsp |
whether to use results from spatial (TRUE) or non-spatial (FALSE)
cross-validation (only used if |
rspcol |
column to use that contains predicted probabilities (only used if
|
in_rftuned |
Output from selecttrain_rf; list containing inner and outer resampling results + task. |
This function was used for internal assessment of model performance. Right now, the options to change binvar and binfunc are not working (need some adjustment); only manual binning based on long-term mean annual discharge ('dis_m3_pyr') is possible. Update instances of 'dis_m3_pyr' for changing.
data.table with performance statistics by subset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.