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.


Try the parsnip package in your browser

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

parsnip documentation built on April 4, 2025, 1:53 a.m.