Nothing
roc_auc()
hand-till method ignores levels with 0 observations with a warning (#123)Code
expect_identical(roc_auc_vec(truth, estimate), 0.5)
Condition
Warning:
x No observations were detected in `truth` for level: y.
i Computation will proceed by ignoring those levels.
Code
out <- roc_auc(no_event, truth, Class1)[[".estimate"]]
Condition
Warning:
No event observations were detected in `truth` with event level 'Class1'.
Code
out <- roc_auc(no_control, truth, Class1)[[".estimate"]]
Condition
Warning:
No control observations were detected in `truth` with control level 'Class2'.
Code
out <- roc_auc(no_event, truth, Class1, Class2, estimator = "macro")[[
".estimate"]]
Condition
Warning:
No event observations were detected in `truth` with event level 'Class1'.
Warning:
No control observations were detected in `truth` with control level '..other'.
Code
out <- roc_auc(no_event, truth, Class1, Class2, estimator = "macro")[[
".estimate"]]
Condition
Warning:
No event observations were detected in `truth` with event level 'Class1'.
Warning:
No control observations were detected in `truth` with control level '..other'.
Code
out <- roc_auc(no_event, truth, Class1, Class2, estimator = "macro_weighted")[[
".estimate"]]
Condition
Warning:
No event observations were detected in `truth` with event level 'Class1'.
Warning:
No control observations were detected in `truth` with control level '..other'.
Code
out <- roc_auc(no_event, truth, Class1, Class2, estimator = "macro_weighted")[[
".estimate"]]
Condition
Warning:
No event observations were detected in `truth` with event level 'Class1'.
Warning:
No control observations were detected in `truth` with control level '..other'.
NaN
when only 1 level has observationsCode
out <- roc_auc_vec(x, estimate, estimator = "hand_till")
Condition
Warning:
x No observations were detected in `truth` for level: y.
i Computation will proceed by ignoring those levels.
Code
out <- roc_auc_vec(x, estimate, estimator = "hand_till")
Condition
Warning:
x No observations were detected in `truth` for levels: y and z.
i Computation will proceed by ignoring those levels.
Code
roc_auc(hpc_cv, obs, VF:L, estimator = "hand_till", case_weights = weight)
Condition
Error in `roc_auc()`:
! Can't specify both `estimator = 'hand_till'` and `case_weights`.
options
is deprecatedCode
out <- roc_auc(two_class_example, truth, Class1, options = 1)
Condition
Warning:
The `options` argument of `roc_auc()` was deprecated in yardstick 1.0.0.
i This argument no longer has any effect, and is being ignored. Use the pROC package directly if you need these features.
Code
out <- roc_auc_vec(truth = two_class_example$truth, estimate = two_class_example$
Class1, options = 1)
Condition
Warning:
The `options` argument of `roc_auc_vec()` was deprecated in yardstick 1.0.0.
i This argument no longer has any effect, and is being ignored. Use the pROC package directly if you need these features.
Code
roc_auc_vec(cp_truth, estimate)
Condition
Error in `roc_auc_vec()`:
! `truth` should not a <class_pred> object.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.