tests/testthat/test_binary_bbrier.R

test_that("bbrier obs_loss works", {
  truth = factor(rep(c("a", "b"), each = 5), levels = c("a", "b"))
  prob = runif(length(truth))
  expect_numeric(se_binary(truth, prob, positive = "a"), len = length(truth))
})

Try the mlr3measures package in your browser

Any scripts or data that you put into this service are public.

mlr3measures documentation built on April 17, 2026, 5:06 p.m.