tests/testthat/test_tss.R

test_that("tss returns correct value", {
  # tss is really a wrapper around the j_index,
  # so we expect them to be identical
  expect_identical(
    tss(two_class_example, truth, predicted)$.estimate,
    yardstick::j_index(two_class_example, truth, predicted)$.estimate
  )
})

Try the tidysdm package in your browser

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

tidysdm documentation built on April 3, 2025, 9:56 p.m.