tests/testthat/_snaps/nearest_neighbor_kknn.md

kknn execution

Code
  fit(hpc_basic, hpc_bad_form, data = hpc, control = ctrl)
Condition
  Error:
  ! object 'term' not found

argument checks for data dimensions

Code
  f_fit <- spec %>% fit(body_mass_g ~ ., data = penguins)
Condition
  Warning:
  ! 1000 samples were requested but there were 333 rows in the data.
  i 328 samples will be used.
Code
  xy_fit <- spec %>% fit_xy(x = penguins[, -6], y = penguins$body_mass_g)
Condition
  Warning:
  ! 1000 samples were requested but there were 333 rows in the data.
  i 328 samples will be used.


tidymodels/parsnip documentation built on Feb. 19, 2025, 2:10 a.m.