tests/testthat/_snaps/hat_values-score.md

score_apd_hat_values_numeric fails when model has no pcs argument

Code
  score_apd_hat_values_numeric(mtcars, mtcars)
Condition
  Error in `score_apd_hat_values_numeric()`:
  ! The model must contain an XtX_inv argument.

score fails when predictors only contain factors

Code
  score(model, iris$Species)
Condition
  Error in `hardhat::forge()`:
  ! The class of `new_data`, 'factor', is not recognized.

score fails when predictors are vectors

Code
  score(object)
Condition
  Error in `score()`:
  ! `object` is not of a recognized type.
  Only data.frame, matrix, recipe, and formula objects are allowed.
  A data.frame was specified.


Try the applicable package in your browser

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

applicable documentation built on May 29, 2024, 6:34 a.m.