tests/testthat/test_knn_model.R

context("Building a knn model")

expect_error(knn_model(ts(1:5), lags = 0:3, k = 5))

expect_error(knn_model(ts(1:5), lags = 3:5, k = 1))

expect_error(knn_model(ts(1:5), lags = 2:4, k = 2))

Try the tsfknn package in your browser

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

tsfknn documentation built on Sept. 4, 2023, 9:06 a.m.