Nothing
Code
check_numeric_metric(1:10, 1:10, 1:11)
Condition
Error:
! `case_weights` (11) must have the same length as `truth` (10).
Code
check_numeric_metric(1, "1", 1)
Condition
Error:
! `estimate` should be a numeric, not a `character`.
Code
check_class_metric(letters, letters, 1:5)
Condition
Error:
! `case_weights` (5) must have the same length as `truth` (26).
Code
check_class_metric(1, "1", 1)
Condition
Error:
! `truth` should be a factor, not a `numeric`.
Code
check_class_metric(factor(c("a", "b", "a"), levels = c("a", "b", "c")), factor(
c("a", "b", "a"), levels = c("a", "b", "c")), case_weights = 1:3, estimator = "binary")
Condition
Error:
! `estimator` is binary, only two class `truth` factors are allowed. A factor with 3 levels was provided.
Code
check_prob_metric(factor(c("a", "b", "a")), matrix(1:6, nrow = 2), 1:4,
estimator = "binary")
Condition
Error:
! `case_weights` (4) must have the same length as `truth` (3).
Code
check_prob_metric(factor(c("a", "b", "a")), matrix(1:6, nrow = 2), 1:3,
estimator = "binary")
Condition
Error:
! You are using a binary metric but have passed multiple columns to `...`.
Code
check_static_survival_metric(truth = lung_surv$surv_obj, estimate = lung_surv$
.pred_survival, case_weights = 1:151)
Condition
Error:
! `case_weights` (151) must have the same length as `truth` (228).
Code
check_static_survival_metric(truth = lung_surv$surv_obj, estimate = as.character(
lung_surv$inst), case_weights = 1:150)
Condition
Error:
! `case_weights` (150) must have the same length as `truth` (228).
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.