tests/testthat/test_proportional_hazards.R

test_that("updating", {
  expect_snapshot(
    proportional_hazards() %>%
      update(penalty = tune())
  )
})


test_that("bad input", {
  expect_error(proportional_hazards(mode = ", classification"))
})

Try the parsnip package in your browser

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

parsnip documentation built on June 24, 2024, 5:14 p.m.